Home
last modified time | relevance | path

Searched refs:assertInstanceOf (Results 1 – 5 of 5) sorted by relevance

/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/stmt/
DTryStmtTest.java15 import static com.github.javaparser.utils.TestUtils.assertInstanceOf;
22 assertInstanceOf(VariableDeclarationExpr.class, tryStmt.getResources().get(0)); in simpleTest()
28 assertInstanceOf(VariableDeclarationExpr.class, tryStmt.getResources().get(0)); in multipleTest()
35 assertInstanceOf(VariableDeclarationExpr.class, tryStmt.getResources().get(0)); in modifiersTest()
42 assertInstanceOf(NameExpr.class, tryStmt.getResources().get(0)); in simpleVariable()
49 assertInstanceOf(NameExpr.class, tryStmt.getResources().get(0)); in twoSimpleVariables()
50 assertInstanceOf(NameExpr.class, tryStmt.getResources().get(1)); in twoSimpleVariables()
57 assertInstanceOf(FieldAccessExpr.class, tryStmt.getResources().get(0)); in complexVariable()
64 assertInstanceOf(FieldAccessExpr.class, tryStmt.getResources().get(0)); in superAccess()
71 assertInstanceOf(FieldAccessExpr.class, tryStmt.getResources().get(0)); in outerClassAccess()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/nodeTypes/
DNodeWithTraversableScopeTest.java8 import static com.github.javaparser.utils.TestUtils.assertInstanceOf;
16 assertInstanceOf(MethodCallExpr.class, expression); in traverse1()
18 assertInstanceOf(FieldAccessExpr.class, expression); in traverse1()
20 assertInstanceOf(MethodCallExpr.class, expression); in traverse1()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/
DProblemTest.java6 import static com.github.javaparser.utils.TestUtils.assertInstanceOf;
16 assertInstanceOf(Exception.class, problem.getCause().get()); in testSimpleGetters()
DJavaParserTest.java45 import static com.github.javaparser.utils.TestUtils.assertInstanceOf;
107 assertInstanceOf(ParseException.class, problem.getCause().get()); in parseErrorContainsLocation()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/utils/
DTestUtils.java52 public static void assertInstanceOf(Class<?> expectedType, Object instance) { in assertInstanceOf() method in TestUtils