assertEquals( 0,
results.size() );
final Cheese stilton1 = new Cheese( "stilton",
100 );
final FactHandle handle1 = workingMemory.insert( stilton1 );
results = workingMemory.getQueryResults( "query-1" );
assertEquals( 1,
results.size() );
final Cheese cheddar = new Cheese( "cheddar",
55 );
workingMemory.insert( cheddar );
results = workingMemory.getQueryResults( "query-1" );
assertEquals( 1,
results.size() );
final Cheese stilton2 = new Cheese( "stilton",
5 );
final FactHandle handle2 = workingMemory.insert( stilton2 );
results = workingMemory.getQueryResults( "query-1" );
assertEquals( 2,
results.size() );