24702471247224732474247524762477247824792480
ksession.fireAllRules(); assertEquals(1, conversations.size()); conversations.clear(); c2.setTimeslot(0); ksession.update(fh2, c2); ksession.fireAllRules(); c2.setTimeslot(4); ksession.update(fh2, c2); ksession.fireAllRules(); conversations.clear();
24732474247524762477247824792480248124822483
c2.setTimeslot(0); ksession.update(fh2, c2); ksession.fireAllRules(); c2.setTimeslot(4); ksession.update(fh2, c2); ksession.fireAllRules(); conversations.clear(); c0.setTimeslot(3); ksession.update(fh0, c0);
24782479248024812482248324842485248624872488
ksession.update(fh2, c2); ksession.fireAllRules(); conversations.clear(); c0.setTimeslot(3); ksession.update(fh0, c0); ksession.fireAllRules(); c0.setTimeslot(2); ksession.update(fh0, c0); ksession.fireAllRules(); conversations.clear();
24812482248324842485248624872488248924902491
c0.setTimeslot(3); ksession.update(fh0, c0); ksession.fireAllRules(); c0.setTimeslot(2); ksession.update(fh0, c0); ksession.fireAllRules(); conversations.clear(); c2.setTimeslot(1); ksession.update(fh2, c2);
24862487248824892490249124922493249424952496
ksession.update(fh0, c0); ksession.fireAllRules(); conversations.clear(); c2.setTimeslot(1); ksession.update(fh2, c2); ksession.fireAllRules(); assertEquals(1, conversations.size()); } @Test
169170171172173174175176177178179
assertEquals( 0, rulesFired ); address.setStreet("123"); ksession.update(addressHandle, address); rulesFired = ksession.fireAllRules(); System.out.println( rulesFired ); assertEquals( 1, rulesFired );
19001901190219031904190519061907190819091910
ksession.fireAllRules(); pB.setAge(31); pB.setName("DBB"); ksession.update(fhB, pB); pD.setAge(30); pD.setName("BDD"); ksession.update(fhD, pD);
19041905190619071908190919101911191219131914
pB.setName("DBB"); ksession.update(fhB, pB); pD.setAge(30); pD.setName("BDD"); ksession.update(fhD, pD); assertEquals(0, ksession.fireAllRules()); pB.setAge(30); pB.setName("BBB");
19101911191219131914191519161917191819191920
assertEquals(0, ksession.fireAllRules()); pB.setAge(30); pB.setName("BBB"); ksession.update(fhB, pB); pD.setAge(31); pD.setName("DDD"); ksession.update(fhD, pD);
19141915191619171918191919201921192219231924
pB.setName("BBB"); ksession.update(fhB, pB); pD.setAge(31); pD.setName("DDD"); ksession.update(fhD, pD); assertEquals(0, ksession.fireAllRules()); } @Test