[jboss-svn-commits] JBL Code SVN: r34151 - labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sat Jul 24 17:54:39 EDT 2010


Author: mark.proctor at jboss.com
Date: 2010-07-24 17:54:38 -0400 (Sat, 24 Jul 2010)
New Revision: 34151

Modified:
   labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/AccumulateTest.java
Log:
-make the unit test more robust for the error it's detecting.

Modified: labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/AccumulateTest.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/AccumulateTest.java	2010-07-24 15:07:15 UTC (rev 34150)
+++ labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/AccumulateTest.java	2010-07-24 21:54:38 UTC (rev 34151)
@@ -1552,8 +1552,10 @@
         // should report a proper error, not raise an exception
         assertTrue( "It must report a proper error when trying to use a non-registered funcion",
                     kbuilder.hasErrors() );
-        assertEquals( 2,
-                      kbuilder.getErrors().size() );
+
+        assertTrue( kbuilder.getErrors().toString().contains( "Unknown accumulate function: 'nonExistingFunction' on rule 'Accumulate non existing function - Java'." ) );
+        assertTrue( kbuilder.getErrors().toString().contains( "Unknown accumulate function: 'nonExistingFunction' on rule 'Accumulate non existing function - MVEL'." ) );
+
     }
 
     public static class DataSet {



More information about the jboss-svn-commits mailing list