Permalink
Browse files

[PMML 5.x] Misc fixes

  • Loading branch information...
1 parent 0472ca8 commit 24e31012e12d048bdd59911d89f0c1d118f8f006 @sotty sotty committed Nov 23, 2013
@@ -73,7 +73,7 @@ public void testCleanupANN() {
System.err.println(reportWMObjects(kSession));
- assertEquals( 2, kSession.getObjects().size() );
+ assertEquals( 1, kSession.getObjects().size() );
kSession.dispose();
}
@@ -100,7 +100,7 @@ public void testReenableANN() {
System.err.println(reportWMObjects(getKSession()));
- assertEquals( 2, getKSession().getObjects().size() );
+ assertEquals( 1, getKSession().getObjects().size() );
getKSession().getWorkingMemoryEntryPoint( "enable_Neuiris" ).insert( Boolean.TRUE );
getKSession().fireAllRules();
@@ -118,7 +118,7 @@ public void testReenableANN() {
Assert.assertEquals(24.0, queryIntegerField("OutSepLen", "Neuiris"));
- assertEquals( 62, getKSession().getObjects().size() );
+ assertEquals( 61, getKSession().getObjects().size() );
getKSession().dispose();
}
@@ -97,7 +97,7 @@ public void testInsertLogicalOnInitialFact() {
"rule \"TraitX\"\n" +
"salience 1000\n" +
"when\n" +
- " $mm : ModelMarker( modelName == \"x\" , enabled == true )\n" +
+ " $mm : ModelMarker( modelName == \"x\" , enabled == true ) @watch(!*) \n" +
"then\n" +
" ISurveyableTrait surv = don( $mm, ISurveyableTrait.class, true );\n" +
" modify ( surv ) {\n" +
@@ -161,9 +161,9 @@ public void testInsertLogicalOnInitialFact() {
System.out.println( "**" + o );
}
- assertEquals( 5, ksession.getObjects().size() );
+ assertEquals( 4, ksession.getObjects().size() );
assertEquals( 2, ksession.getObjects(new ClassObjectFilter( ModelMarker.class )).size() );
- assertEquals( 2, ksession.getObjects(new ClassObjectFilter( Thing.class )).size() );
+ assertEquals( 1, ksession.getObjects(new ClassObjectFilter( Thing.class )).size() );
ksession.dispose();
kagent.dispose();

0 comments on commit 24e3101

Please sign in to comment.