assertTrue( runner.getPopulatedData().get( "c1" ) instanceof Cheese );
}
@Test
public void testDateField() throws Exception {
Scenario sc = new Scenario();
List facts = ls( new FactData( "Cheese",
"c1",
ls( new FieldData( "type",
"cheddar" ),
new FieldData( "usedBy",
"10-Jul-2008" ) ),
false ),
new FactData( "OuterFact",
"p1",
ls( new FieldData( "name",
"mic" ),
new FieldData( "innerFact",
"=c1" ) ),
false ) );
sc.getFixtures().addAll( facts );
TypeResolver resolver = new ClassTypeResolver( new HashSet<String>(),
Thread.currentThread().getContextClassLoader() );
resolver.addImport( "org.drools.Cheese" );
resolver.addImport( "org.drools.OuterFact" );
ScenarioRunner runner = new ScenarioRunner( sc,