session.setGlobal( "result",
result );
// This rule is always true.
VerifierRule rule1 = VerifierComponentMockFactory.createRule1();
Pattern pattern1 = VerifierComponentMockFactory.createPattern1();
SubRule rp1 = new SubRule( rule1,
0 );
SubPattern pp1 = new SubPattern( pattern1,
0 );
AlwaysTrue alwaysTrue1 = new AlwaysTrue( pp1 );
SubPattern pp2 = new SubPattern( pattern1,
1 );
AlwaysTrue alwaysTrue2 = new AlwaysTrue( pp2 );
rp1.add( pp1 );
rp1.add( pp2 );
// This rule is okay.
VerifierRule rule2 = VerifierComponentMockFactory.createRule2();
Pattern pattern2 = VerifierComponentMockFactory.createPattern2();
SubRule rp2 = new SubRule( rule2,
0 );
SubPattern pp3 = new SubPattern( pattern2,