Fix syntax error in code sample

This commit is contained in:
Andreas Dangel
2016-03-20 11:10:37 +01:00
parent 4f0ed30250
commit 4df5999f6b

View File

@ -22,7 +22,7 @@ public class ApexParserTest {
@Test
public void testParse() {
ASTUserClass rootNode = parse("public class HelloWorld { public void foo() {} private static int bar() { return 1; }");
ASTUserClass rootNode = parse("public class HelloWorld { public void foo() {} private static int bar() { return 1; } }");
List<ASTMethod> methods = rootNode.findDescendantsOfType(ASTMethod.class);
assertEquals(2, methods.size());