21822183218421852186218721882189219021912192
FactHandle fhC = ksession.insert(lC); ksession.fireAllRules(); assertEquals(2, list.size()); assertTrue(list.containsAll(asList("A", "B"))); list.clear(); ksession.update(fhB, lB.setAvailable(false)); ksession.fireAllRules();
21922193219421952196219721982199220022012202
ksession.update(fhB, lB.setDay(0).setIndex(3)); ksession.fireAllRules(); assertEquals(2, list.size()); assertTrue(list.containsAll(asList("B", "C"))); list.clear(); } @Test public void testQueryAndRetract() {
167168169170171172173174175176177
} while (list1.size() > 0) list1.remove(0); list1.addAll(list2); assertTrue("The object list is not the same as orginal list", list1 .containsAll(list2) && list2.containsAll(list1)); obj = new ArrayList(); for (int i = 0; i < 100; i++) { if (list1.size() > 0) { obj.removeAll(list1);
46334634463546364637463846394640464146424643
assertEquals( 0, cwm.getUpdates() ); cwm.reset(); assertEquals( 4, list.size() ); assertTrue( list.containsAll( Arrays.asList( 0, 1, 2, 3 ) ) ); }
46434644464546464647464846494650465146524653
118119120121122123124125126127128
Collection els = new ArrayList(); while (en.hasMoreElements()) { els.add(en.nextElement()); } //assertEquals(5, els.size()); assertTrue(els.containsAll(Arrays.asList(arr))); } /** * input parameter is null
249250251252253254255256257258259
while (list1.size() > 0) list1.remove(0); list1.addAll(list2); assertTrue("The object list is not the same as original list", list1 .containsAll(list2) && list2.containsAll(list1)); obj = new ArrayList(); for (int i = 0; i < 100; i++) { if (list1.size() > 0) { obj.removeAll(list1);
10221023102410251026102710281029103010311032
.next()).getEstruturaAtributoEttats().iterator(); while (itAtributosResultado.hasNext()) atributosResultado .add(((EstruturaAtributoEttat) itAtributosResultado .next()).getAtributosAtb()); if (!atributosResultado.containsAll(atributosPesquisa)) itResults.remove(); } } /* se a estrutura possui fun��es */
10501051105210531054105510561057105810591060
.getEstruturaFuncaoEttfs().iterator(); while (itFuncoesResultado.hasNext()) funcoesResultado .add(((EstruturaFuncaoEttf) itFuncoesResultado .next()).getFuncaoFun()); if (!funcoesResultado.containsAll(funcoesPesquisa)) itResults.remove(); } } /* se a estrutura possui fun��es de Acompanhamento */
10781079108010811082108310841085108610871088
.getEstrutTpFuncAcmpEtttfas().iterator(); while (itFuncoesResultado.hasNext()) funcoesResultado .add(((EstrutTpFuncAcmpEtttfa) itFuncoesResultado .next()).getTipoFuncAcompTpfa()); if (!funcoesResultado.containsAll(funcoesAcompPesquisa)) itResults.remove(); } } /* se a estrutura possui dependencia de exibi��o com estrutura superior */