Home
last modified time | relevance | path

Searched refs:assertProblems (Results 1 – 13 of 13) sorted by relevance

/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/validator/
DJava1_2ValidatorTest.java15 import static com.github.javaparser.utils.TestUtils.assertProblems;
25 assertProblems(result, in topClass()
44 assertProblems(result, in nestedClass()
60 assertProblems(result, in localClass()
80 assertProblems(result, in topInterface()
100 assertProblems(result, in nestedInterface()
117 assertProblems(result, in constructor()
137 assertProblems(result, in constructorParameter()
159 assertProblems(result, in classMethod()
174 assertProblems(result, in interfaceMethod()
[all …]
DJava1_1ValidatorTest.java17 import static com.github.javaparser.utils.TestUtils.assertProblems;
27 assertProblems(result, in topClass()
46 assertProblems(result, in nestedClass()
62 assertProblems(result, in localClass()
82 assertProblems(result, in topInterface()
102 assertProblems(result, in nestedInterface()
119 assertProblems(result, in constructor()
139 assertProblems(result, in constructorParameter()
160 assertProblems(result, in classMethod()
175 assertProblems(result, in interfaceMethod()
[all …]
DJava10ValidatorTest.java16 import static com.github.javaparser.utils.TestUtils.assertProblems;
48 assertProblems(result, "(line 1,col 5) \"var\" is not allowed here."); in varNotAllowedInTryWithResources()
54 assertProblems(result, "(line 1,col 1) \"var\" is not allowed here."); in varNotAllowedInField()
60 assertProblems(result, "(line 1,col 7) \"var\" is not allowed here."); in varNotAllowedInTypeArguments()
66 assertProblems(result, "(line 1,col 4) \"var\" is not allowed here."); in varNotAllowedInLambdaParameters()
72 assertProblems(result, "(line 1,col 1) \"var\" needs an initializer."); in emptyInitializerNotAllowed()
78 assertProblems(result, "(line 1,col 1) \"var\" only takes a single variable."); in multipleVariablesNotAllowed()
84 assertProblems(result, "(line 1,col 1) \"var\" cannot infer type from just null."); in nullVariablesNotAllowed()
90 assertProblems(result, "(line 1,col 1) \"var\" cannot infer array types."); in arrayDimensionBracketsNotAllowed()
98 assertProblems(result, ""); in selfReferenceNotAllowed()
[all …]
DJava1_0ValidatorTest.java21 import static com.github.javaparser.utils.TestUtils.assertProblems;
30 assertProblems(result, in tryWithoutResources()
38 assertProblems(result, "(line 1,col 20) A class cannot extend more than one other class."); in classExtendingMoreThanOne()
44 assertProblems(result, "(line 1,col 24) An interface cannot implement other interfaces."); in interfaceUsingImplements()
50 assertProblems(result, "(line 1,col 14) An interface cannot have initializers."); in interfaceWithInitializer()
56 assertProblems(result, "(line 1,col 10) 'default' is not allowed here."); in defaultInClass()
62 assertProblems(result, "(line 1,col 1) Illegal left hand side of an assignment."); in leftHandAssignmentCannotBeAConditional()
68 assertProblems(result, in leftHandAssignmentCannotBeEmptyBraces()
82 assertProblems(result, "(line 1,col 9) inner classes or interfaces are not supported."); in noInnerClasses()
88 assertProblems(result, "(line 1,col 1) Reflection is not supported."); in noReflection()
DJava5ValidatorTest.java18 import static com.github.javaparser.utils.TestUtils.assertProblems;
26 assertProblems(result, "(line 1,col 33) The diamond operator is not supported."); in genericsWithoutDiamond()
32 assertProblems(result, in topAnnotationDeclaration()
52 assertProblems(result, in nestedAnnotationDeclaration()
69 assertProblems(result, in annotationMember()
90 assertProblems(result, in topEnum()
111 assertProblems(result, in nestedEnum()
147 assertProblems(result, "(line 1,col 17) Type arguments may not be primitive."); in noPrimitiveTypeArguments()
153assertProblems(result, "(line 1,col 5) 'enum' cannot be used as an identifier as it is a keyword."… in enumAllowedAsIdentifier()
DJava8ValidatorTest.java16 import static com.github.javaparser.utils.TestUtils.assertProblems;
24 assertProblems(result, "(line 1,col 19) There is no such thing as a local interface."); in localInterface()
30 assertProblems(result, in lambdaParameter()
53 assertProblems(result, in interfaceMethod()
68 assertProblems(result, "(line 1,col 14) 'default' methods must have a body."); in defaultMethodWithoutBody()
80 assertProblems(result, "(line 1,col 1) Modules are not supported."); in noModules()
DJava1_4ValidatorTest.java15 import static com.github.javaparser.utils.TestUtils.assertProblems;
29 assertProblems(result, in noGenerics()
38 assertProblems(result, in noAnnotations()
48 assertProblems(result, "(line 1,col 1) Varargs are not supported."); in novarargs()
54 assertProblems(result, "(line 1,col 1) For-each loops are not supported."); in noforeach()
60 assertProblems(result, in staticImport()
DJava7ValidatorTest.java22 import static com.github.javaparser.utils.TestUtils.assertProblems;
36 assertProblems(result, "(line 1,col 14) 'default' is not allowed here."); in defaultMethodWithoutBody()
42 assertProblems(result, "(line 1,col 1) Try has no finally, no catch, and no resources."); in tryWithoutAnything()
54assertProblems(result, "(line 1,col 1) Try with resources only supports variable declarations."); in tryWithResourceReference()
88 assertProblems(problems, "UnionType.elements can not be empty."); in multiCatchWithoutElements()
99 assertProblems(problems, "Union type (multi catch) must have at least two elements."); in multiCatchWithOneElement()
105 assertProblems(result, "(line 1,col 3) Lambdas are not supported."); in noLambdas()
DJava6ValidatorTest.java14 import static com.github.javaparser.utils.TestUtils.assertProblems;
22 assertProblems(result, "(line 1,col 16) Strings in switch statements are not supported."); in noStringsInSwitch()
28 assertProblems(result, "(line 1,col 1) Binary literal values are not supported."); in nobinaryIntegerLiterals()
34 assertProblems(result, "(line 1,col 1) Underscores in literal values are not supported."); in noUnderscoresInIntegerLiterals()
40 assertProblems(result, "(line 1,col 12) Multi-catch is not supported."); in noMultiCatch()
DJava9ValidatorTest.java16 import static com.github.javaparser.utils.TestUtils.assertProblems;
24 assertProblems(result, in underscoreIdentifiers()
35 assertProblems(result, in moduleRequires()
56 assertProblems(result, in interfaceMethod()
DJava1_3ValidatorTest.java12 import static com.github.javaparser.utils.TestUtils.assertProblems;
20 assertProblems(result, "(line 1,col 1) 'assert' keyword is not supported."); in noAssert()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/utils/
DTestUtils.java129 public static void assertProblems(ParseResult<?> result, String... expectedArg) { in assertProblems() method in TestUtils
130 assertProblems(result.getProblems(), expectedArg); in assertProblems()
133 public static void assertProblems(List<Problem> result, String... expectedArg) { in assertProblems() method in TestUtils
140 assertProblems(result); in assertNoProblems()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/body/
DConstructorDeclarationTest.java9 import static com.github.javaparser.utils.TestUtils.assertProblems;