sce.putDataEnumList( "Fact.field5",
new String[]{"e1", "e2"} );
sce.putDataEnumList( "Fact.field6[field1=a1, field2=b2, field3=c3,longerField4=d1,field5=e2]",
new String[]{"f1", "f2"} );
FactPattern pat = new FactPattern( "Fact" );
SingleFieldConstraint sfc = new SingleFieldConstraint( "field1" );
sfc.setValue( "a1" );
pat.addConstraint( sfc );
SingleFieldConstraint sfc2 = new SingleFieldConstraint( "field2" );
sfc2.setValue( "b2" );
pat.addConstraint( sfc2 );
SingleFieldConstraint sfc3 = new SingleFieldConstraint( "field3" );
sfc3.setValue( "c3" );
pat.addConstraint( sfc3 );
SingleFieldConstraint sfc4 = new SingleFieldConstraint( "longerField4" );
sfc4.setValue( "d1" );
pat.addConstraint( sfc4 );
assertNull( sce.getEnums( pat,
"field6" ) );
SingleFieldConstraint sfc5 = new SingleFieldConstraint( "field5" );
sfc5.setValue( "e2" );
pat.addConstraint( sfc5 );
String[] result2 = sce.getEnums( pat,
"field6" ).fixedList;
assertEquals( 2,
result2.length );