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

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Jun 17 11:14:51 EDT 2009


Author: jervisliu
Date: 2009-06-17 11:14:51 -0400 (Wed, 17 Jun 2009)
New Revision: 26994

Modified:
   labs/jbossrules/trunk/drools-repository/src/test/java/org/drools/repository/RulesRepositoryTest.java
Log:
Commented out testConcurrentCopyPackage test for the time being. This test seems a bit fragile, it passed on Windows. Sometimes it passed in Linux, but sometimes it did not. And when it failed, it crashed jackrabbit db, made all the following tests failed. 

Modified: labs/jbossrules/trunk/drools-repository/src/test/java/org/drools/repository/RulesRepositoryTest.java
===================================================================
--- labs/jbossrules/trunk/drools-repository/src/test/java/org/drools/repository/RulesRepositoryTest.java	2009-06-17 15:10:29 UTC (rev 26993)
+++ labs/jbossrules/trunk/drools-repository/src/test/java/org/drools/repository/RulesRepositoryTest.java	2009-06-17 15:14:51 UTC (rev 26994)
@@ -30,7 +30,7 @@
 
 public class RulesRepositoryTest extends TestCase {
 	int running = 0;
-	
+
     public void testDefaultPackage() throws Exception {
         RulesRepository repo = RepositorySessionUtil.getRepository();
 
@@ -1062,7 +1062,7 @@
             repo.exportRulesRepositoryToStream(bout);
 
             repository_unitest = bout.toByteArray();
-            
+
             repo.importRulesRepositoryFromStream(new ByteArrayInputStream(repository_backup));
             assertFalse( repo.containsPackage( "testImportExport" ) );
 
@@ -1079,11 +1079,11 @@
         }
     }
 
-	//In this test case we expect an ItemExistException from the second thread,  
-    //other than ending up with two packages with same name. 
-	public void testConcurrentCopyPackage() throws Exception {
-		//We have to handle how to get an instance of RulesRepository, 
-		//by ourself, as different threads need to use different sessions. 
+	//In this test case we expect an ItemExistException from the second thread,
+    //other than ending up with two packages with same name.
+	public void xtestConcurrentCopyPackage() throws Exception {
+		//We have to handle how to get an instance of RulesRepository,
+		//by ourself, as different threads need to use different sessions.
 		final Repository repository;
 
 		File dir = new File("repository");
@@ -1167,7 +1167,7 @@
 
 		//TO-BE-FIXED: https://jira.jboss.org/jira/browse/GUVNOR-346
 		//assertEquals(1, results.getSize());
-	} 
+	}
 
     private static boolean deleteDir(File dir) {
 




More information about the jboss-svn-commits mailing list