session.setAgendaFilter( new RuleNameMatchesAgendaFilter( "Incompatible Patterns" ) );
Collection<Object> data = new ArrayList<Object>();
Pattern pattern1 = VerifierComponentMockFactory.createPattern1();
Pattern pattern2 = VerifierComponentMockFactory.createPattern2();
/*
* Working pair
*/
SubPattern pp1 = new SubPattern( pattern1,
0 );
SubPattern pp2 = new SubPattern( pattern2,
0 );
Restriction r1 = LiteralRestriction.createRestriction( pattern1,
"" );
pp1.add( r1 );
Restriction r2 = LiteralRestriction.createRestriction( pattern2,
"" );
pp2.add( r2 );
Restriction r3 = LiteralRestriction.createRestriction( pattern1,
"" );
pp1.add( r3 );
Restriction r4 = LiteralRestriction.createRestriction( pattern2,
"" );
pp2.add( r4 );
Incompatibility o1 = new Incompatibility( r1,
r2 );
Incompatibility o2 = new Incompatibility( r3,
r4 );
Pattern pattern3 = VerifierComponentMockFactory.createPattern( 3 );
Pattern pattern4 = VerifierComponentMockFactory.createPattern( 4 );
/*
* Another working pair.
*/
SubPattern pp3 = new SubPattern( pattern3,
0 );