[hornetq-commits] JBoss hornetq SVN: r10622 - in trunk/tests/integration-tests: src/test/java/org/hornetq/tests/integration/journal and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed May 11 07:02:46 EDT 2011


Author: borges
Date: 2011-05-11 07:02:46 -0400 (Wed, 11 May 2011)
New Revision: 10622

Modified:
   trunk/tests/integration-tests/pom.xml
   trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/journal/ValidateTransactionHealthTest.java
Log:
HACK: Set java.library.path property and force its re-evaluation

Modified: trunk/tests/integration-tests/pom.xml
===================================================================
--- trunk/tests/integration-tests/pom.xml	2011-05-11 11:02:04 UTC (rev 10621)
+++ trunk/tests/integration-tests/pom.xml	2011-05-11 11:02:46 UTC (rev 10622)
@@ -114,7 +114,13 @@
                   <exclude>**/cluster/failover/Remote*.java</exclude>
                   <exclude>**/failover/remote/**.java</exclude>
                </excludes>
-            </configuration>
+          <systemProperties>
+            <property>
+              <name>java.library.path</name>
+              <value>${user.dir}/distribution/hornetq/src/main/resources/bin</value>
+            </property>
+          </systemProperties>
+         </configuration>
          </plugin>
          <plugin>
             <groupId>org.apache.maven.plugins</groupId>

Modified: trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/journal/ValidateTransactionHealthTest.java
===================================================================
--- trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/journal/ValidateTransactionHealthTest.java	2011-05-11 11:02:04 UTC (rev 10621)
+++ trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/journal/ValidateTransactionHealthTest.java	2011-05-11 11:02:46 UTC (rev 10622)
@@ -14,6 +14,7 @@
 package org.hornetq.tests.integration.journal;
 
 import java.io.File;
+import java.lang.reflect.Field;
 import java.nio.ByteBuffer;
 import java.util.List;
 import java.util.concurrent.atomic.AtomicLong;
@@ -130,6 +131,10 @@
       File file = new File(getTestDir());
       deleteDirectory(file);
       file.mkdir();
+
+   	  Field fieldSysPath = ClassLoader.class.getDeclaredField("sys_paths");
+   	  fieldSysPath.setAccessible(true);
+   	  fieldSysPath.set(null, null);
    }
 
    // Private -------------------------------------------------------



More information about the hornetq-commits mailing list