|
FactData cheeseFactData = new FactData(
"Cheese",
"c1",
Arrays.<Field>asList(
new FieldData(
"type",
"cheddar" ),
new FieldData(
"price",
"42" ) ),
false );
factPopulator.add( new NewFactPopulator( populatedData, typeResolver, cheeseFactData ) );
FactData outerFactData = new FactData(
"OuterFact",
"p1",
Arrays.<Field>asList(
new FieldData(
"name",
"mic" ),
new FieldData(
"innerFact",
"=c1" ) ),
false );
factPopulator.add( new NewFactPopulator( populatedData, typeResolver, outerFactData ) );
|