@Test public void testClassExtendingDefaultController() throws IOException, ParseException { File file = new File("src/test/java/sample/MyDefaultController.java"); final CompilationUnit declaration = JavaParser.parse(file); final Boolean isController = visitor.visit(declaration, null); assertThat(isController).isTrue(); }
public Boolean visit(final CompilationUnit n, final Object arg) { final Boolean result = super.visit(n, arg); return result != null && result; }
ClassSourceVisitor extends GenericVisitorAdapter<Boolean, Object> { public Boolean visit(final CompilationUnit n, final Object arg) { final Boolean result = super.visit(n, arg); return result != null && result; } }
ClassSourceVisitor extends GenericVisitorAdapter<Boolean, Object> { public Boolean visit(final CompilationUnit n, final Object arg) { final Boolean result = super.visit(n, arg); return result != null && result; }  }
ClassSourceVisitor extends GenericVisitorAdapter<Boolean, Object> { public Boolean visit(final CompilationUnit n, final Object arg) { final Boolean result = super.visit(n, arg); return result != null && result; }  Boolean visit(final CompilationUnit n, final Object arg); Boolean visit(ClassOrInterfaceDeclaration declaration, Object extra); }
ClassSourceVisitor extends GenericVisitorAdapter<Boolean, Object> { public Boolean visit(final CompilationUnit n, final Object arg) { final Boolean result = super.visit(n, arg); return result != null && result; }  Boolean visit(final CompilationUnit n, final Object arg); Boolean visit(ClassOrInterfaceDeclaration declaration, Object extra);  }