Skip to content
Browse files

[DROOLS-7] fix wrong test

  • Loading branch information...
1 parent dff1cb1 commit d27de27880c4ce8c7a23bc7f5c16a152f32c9996 @mariofusco mariofusco committed Mar 20, 2013
View
11 drools-compiler/src/test/java/org/drools/compiler/integrationtests/TruthMaintenanceTest.java
@@ -901,7 +901,6 @@ public void testLogicalInsertions3() throws Exception {
}
@Test
- @Ignore( "phreak" )
public void testLogicalInsertionsAccumulatorPattern() throws Exception {
// JBRULES-449
KnowledgeBase kbase = loadKnowledgeBase( "test_LogicalInsertionsAccumulatorPattern.drl" );
@@ -939,16 +938,10 @@ public void testLogicalInsertionsAccumulatorPattern() throws Exception {
ksession = SerializationHelper.getSerialisedStatefulKnowledgeSession(ksession,
true);
- assertEquals( "There should be only 1 CheeseEqual in Working Memory, 1 stated (the justified should have been retracted). Check TruthMaintenanceSystem justifiedMap",
- 1,
+ assertEquals( 0,
ksession.getObjects( new ClassObjectFilter( CheeseEqual.class ) ).size() );
- assertEquals( 1,
+ assertEquals( 0,
ksession.getObjects( new ClassObjectFilter( Short.class ) ).size() );
- assertEquals( 2,
- ksession.getObjects().size() );
-
- //clean-up
- ksession.fireAllRules();
assertEquals( 0,
ksession.getObjects().size() );
}

0 comments on commit d27de27

Please sign in to comment.
Something went wrong with that request. Please try again.