[jboss-svn-commits] JBL Code SVN: r15035 - in labs/jbossrules/trunk/drools-jbrms/src/test: resources and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Sep 11 19:49:55 EDT 2007


Author: michael.neale at jboss.com
Date: 2007-09-11 19:49:55 -0400 (Tue, 11 Sep 2007)
New Revision: 15035

Modified:
   labs/jbossrules/trunk/drools-jbrms/src/test/java/org/drools/brms/server/ServiceImplementationTest.java
   labs/jbossrules/trunk/drools-jbrms/src/test/resources/RepoBinPackage.pkg
Log:
JBRULES-1182

Modified: labs/jbossrules/trunk/drools-jbrms/src/test/java/org/drools/brms/server/ServiceImplementationTest.java
===================================================================
--- labs/jbossrules/trunk/drools-jbrms/src/test/java/org/drools/brms/server/ServiceImplementationTest.java	2007-09-11 23:39:49 UTC (rev 15034)
+++ labs/jbossrules/trunk/drools-jbrms/src/test/java/org/drools/brms/server/ServiceImplementationTest.java	2007-09-11 23:49:55 UTC (rev 15035)
@@ -17,6 +17,7 @@
  */
 
 import java.io.ByteArrayInputStream;
+import java.io.FileOutputStream;
 import java.io.ObjectInputStream;
 import java.util.ArrayList;
 import java.util.Calendar;
@@ -1191,10 +1192,10 @@
         byte[] binPackage = pkg.getCompiledPackageBytes();
 
         //Here is where we write it out if needed... UNCOMMENT if needed for the binary test
-        //        FileOutputStream out = new FileOutputStream("/home/michael/RepoBinPackage.pkg");
-        //        out.write( binPackage );
-        //        out.flush();
-        //        out.close();
+//                FileOutputStream out = new FileOutputStream("/Users/michaelneale/RepoBinPackage.pkg");
+//                out.write( binPackage );
+//                out.flush();
+//                out.close();
 
         assertNotNull( binPackage );
 
@@ -1271,7 +1272,7 @@
      * then it means it needs to be updated. It gets the package form the BRL example above.
      */
     public void testLoadAndExecBinary() throws Exception {
-        Person p = new Person();
+        Person p = new Person("fubar");
         BinaryRuleBaseLoader loader = new BinaryRuleBaseLoader();
         loader.addPackage( this.getClass().getResourceAsStream( "/RepoBinPackage.pkg" ) );
         RuleBase rb = loader.getRuleBase();

Modified: labs/jbossrules/trunk/drools-jbrms/src/test/resources/RepoBinPackage.pkg
===================================================================
(Binary files differ)




More information about the jboss-svn-commits mailing list