-
-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ea3bcf
commit 248f051
Showing
37 changed files
with
452 additions
and
9 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
src/test/java/spoon/testing/assertions/CtAnnotationAssertInterface.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 9 additions & 1 deletion
10
src/test/java/spoon/testing/assertions/CtAnnotationTypeAssertInterface.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
package spoon.testing.assertions; | ||
import java.util.Collection; | ||
import org.assertj.core.api.AbstractCollectionAssert; | ||
import org.assertj.core.api.AbstractObjectAssert; | ||
import org.assertj.core.api.Assertions; | ||
import spoon.reflect.declaration.CtAnnotationMethod; | ||
import spoon.reflect.declaration.CtAnnotationType; | ||
public interface CtAnnotationTypeAssertInterface<A extends AbstractObjectAssert<A, W>, W extends CtAnnotationType<?>> extends SpoonAssert<A, W> , CtTypeAssertInterface<A, W> {} | ||
public interface CtAnnotationTypeAssertInterface<A extends AbstractObjectAssert<A, W>, W extends CtAnnotationType<?>> extends SpoonAssert<A, W> , CtTypeAssertInterface<A, W> { | ||
default AbstractCollectionAssert<?, Collection<? extends CtAnnotationMethod<?>>, CtAnnotationMethod<?>, ?> getAnnotationMethods() { | ||
return Assertions.assertThat(actual().getAnnotationMethods()); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/test/java/spoon/testing/assertions/CtArrayTypeReferenceAssertInterface.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/test/java/spoon/testing/assertions/CtCatchVariableAssertInterface.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
package spoon.testing.assertions; | ||
import org.assertj.core.api.AbstractBooleanAssert; | ||
import org.assertj.core.api.AbstractObjectAssert; | ||
import org.assertj.core.api.Assertions; | ||
import spoon.reflect.code.CtCatchVariable; | ||
public interface CtCatchVariableAssertInterface<A extends AbstractObjectAssert<A, W>, W extends CtCatchVariable<?>> extends CtVariableAssertInterface<A, W> , SpoonAssert<A, W> , CtMultiTypedElementAssertInterface<A, W> , CtCodeElementAssertInterface<A, W> { | ||
default CtCatchVariableReferenceAssertInterface<?, ?> getReference() { | ||
return SpoonAssertions.assertThat(actual().getReference()); | ||
} | ||
|
||
default CtTypeReferenceAssertInterface<?, ?> getType() { | ||
return SpoonAssertions.assertThat(actual().getType()); | ||
} | ||
|
||
default AbstractBooleanAssert<?> isUnnamed() { | ||
return Assertions.assertThat(actual().isUnnamed()); | ||
} | ||
} |
6 changes: 5 additions & 1 deletion
6
src/test/java/spoon/testing/assertions/CtCatchVariableReferenceAssertInterface.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
package spoon.testing.assertions; | ||
import org.assertj.core.api.AbstractObjectAssert; | ||
import spoon.reflect.reference.CtCatchVariableReference; | ||
public interface CtCatchVariableReferenceAssertInterface<A extends AbstractObjectAssert<A, W>, W extends CtCatchVariableReference<?>> extends CtVariableReferenceAssertInterface<A, W> , SpoonAssert<A, W> {} | ||
public interface CtCatchVariableReferenceAssertInterface<A extends AbstractObjectAssert<A, W>, W extends CtCatchVariableReference<?>> extends CtVariableReferenceAssertInterface<A, W> , SpoonAssert<A, W> { | ||
default CtCatchVariableAssertInterface<?, ?> getDeclaration() { | ||
return SpoonAssertions.assertThat(actual().getDeclaration()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
src/test/java/spoon/testing/assertions/CtFieldAssertInterface.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
package spoon.testing.assertions; | ||
import org.assertj.core.api.AbstractObjectAssert; | ||
import spoon.reflect.declaration.CtField; | ||
public interface CtFieldAssertInterface<A extends AbstractObjectAssert<A, W>, W extends CtField<?>> extends CtVariableAssertInterface<A, W> , SpoonAssert<A, W> , CtRHSReceiverAssertInterface<A, W> , CtShadowableAssertInterface<A, W> , CtTypeMemberAssertInterface<A, W> {} | ||
public interface CtFieldAssertInterface<A extends AbstractObjectAssert<A, W>, W extends CtField<?>> extends CtVariableAssertInterface<A, W> , SpoonAssert<A, W> , CtRHSReceiverAssertInterface<A, W> , CtShadowableAssertInterface<A, W> , CtTypeMemberAssertInterface<A, W> { | ||
default CtFieldReferenceAssertInterface<?, ?> getReference() { | ||
return SpoonAssertions.assertThat(actual().getReference()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/test/java/spoon/testing/assertions/CtImportAssertInterface.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/test/java/spoon/testing/assertions/CtJavaDocAssertInterface.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
src/test/java/spoon/testing/assertions/CtLocalVariableReferenceAssertInterface.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
package spoon.testing.assertions; | ||
import org.assertj.core.api.AbstractObjectAssert; | ||
import spoon.reflect.reference.CtLocalVariableReference; | ||
public interface CtLocalVariableReferenceAssertInterface<A extends AbstractObjectAssert<A, W>, W extends CtLocalVariableReference<?>> extends CtVariableReferenceAssertInterface<A, W> , SpoonAssert<A, W> {} | ||
public interface CtLocalVariableReferenceAssertInterface<A extends AbstractObjectAssert<A, W>, W extends CtLocalVariableReference<?>> extends CtVariableReferenceAssertInterface<A, W> , SpoonAssert<A, W> { | ||
default CtLocalVariableAssertInterface<?, ?> getDeclaration() { | ||
return SpoonAssertions.assertThat(actual().getDeclaration()); | ||
} | ||
} |
Oops, something went wrong.