fieldConstr.getExpression() );
}
@Test
public void testSemicolon() throws Exception {
final PackageDescr pkg = (PackageDescr) parseResource( "compilationUnit",
"semicolon.drl" );
assertFalse( parser.getErrors().toString(),
parser.hasErrors() );
assertEquals( "org.drools.compiler",
pkg.getName() );
assertEquals( 1,
pkg.getGlobals().size() );
assertEquals( 3,
pkg.getRules().size() );
final RuleDescr rule1 = (RuleDescr) pkg.getRules().get( 0 );
assertEquals( 2,
rule1.getLhs().getDescrs().size() );
final RuleDescr query1 = (RuleDescr) pkg.getRules().get( 1 );
assertEquals( 3,
query1.getLhs().getDescrs().size() );
final RuleDescr rule2 = (RuleDescr) pkg.getRules().get( 2 );
assertEquals( 2,
rule2.getLhs().getDescrs().size() );
}