Skip to content

Commit

Permalink
Merge pull request #48 from apex-dev-tools/nested-soql-jvm
Browse files Browse the repository at this point in the history
Add nested sub query test to jvm
  • Loading branch information
pwrightcertinia authored Aug 29, 2024
2 parents df3171a + f4e52fb commit fee3a16
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,14 @@ void testGeoLocationFunction() {
assertNotNull(context);
assertEquals(0, parserAndCounter.getValue().getNumErrors());
}

@Test
void testSubQuery() {
Map.Entry<ApexParser, SyntaxErrorCounter> parserAndCounter = createParser(
"SELECT Name, (SELECT Id, (SELECT Id, (SELECT Id, (SELECT Id FROM Child4 ) FROM Child3 ) FROM Child2 ) FROM Child1) FROM Parent"
);
ApexParser.QueryContext context = parserAndCounter.getKey().query();
assertNotNull(context);
assertEquals(0, parserAndCounter.getValue().getNumErrors());
}
}

0 comments on commit fee3a16

Please sign in to comment.