use of apex.jorje.data.ast.CompilationUnit in project pmd by pmd.
the class ApexLexerTest method testParser.
@Test
public void testParser() throws Exception {
CharStream in = new ANTLRStringStream(CODE);
ApexLexer lexer = new ApexLexer(in);
ApexParser parser = new ApexParser(new CommonTokenStream(lexer));
CompilationUnit compilationUnit = parser.compilationUnit();
Assert.assertNotNull(compilationUnit);
}
Aggregations