use of org.whole.lang.models.codebase.XmlModel in project whole by wholeplatform.
the class SelectQueriesTest method testSelectTemplateWithNestedEmptyQuery.
@Test
public void testSelectTemplateWithNestedEmptyQuery() {
ITemplateManager tm = SelectQueriesTemplateManager.instance();
Model m = new XmlModel().create();
PathExpression pe1 = (PathExpression) tm.create("selectTemplateWithNestedEmptyQuery");
for (ClassDeclaration t : BehaviorUtils.<ClassDeclaration>compileAndLazyEvaluate(pe1, m)) {
assertEquals(JavaEntityDescriptorEnum.ClassDeclaration, t.wGetEntityDescriptor());
assertEquals(2, t.getBodyDeclarations().wSize());
}
}
Aggregations