[hornetq-commits] JBoss hornetq SVN: r11851 - in trunk: hornetq-journal and 7 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Dec 6 05:33:14 EST 2011


Author: ataylor
Date: 2011-12-06 05:33:14 -0500 (Tue, 06 Dec 2011)
New Revision: 11851

Added:
   trunk/hornetq-journal/src/test/
   trunk/hornetq-journal/src/test/java/
   trunk/hornetq-journal/src/test/java/org/
   trunk/hornetq-journal/src/test/java/org/hornetq/
   trunk/hornetq-journal/src/test/java/org/hornetq/tests/
   trunk/hornetq-journal/src/test/java/org/hornetq/tests/asyncio/
   trunk/hornetq-journal/src/test/java/org/hornetq/tests/asyncio/LibaioDependencyCheckTest.java
Modified:
   trunk/hornetq-journal/pom.xml
   trunk/pom.xml
Log:
moved libaio test into hornetq journal module and fixed

Modified: trunk/hornetq-journal/pom.xml
===================================================================
--- trunk/hornetq-journal/pom.xml	2011-12-06 10:27:49 UTC (rev 11850)
+++ trunk/hornetq-journal/pom.xml	2011-12-06 10:33:14 UTC (rev 11851)
@@ -22,6 +22,13 @@
          <artifactId>hornetq-commons</artifactId>
          <version>${project.version}</version>
       </dependency>
+      <!-- needed to compile the tests -->
+      <dependency>
+         <groupId>junit</groupId>
+         <artifactId>junit</artifactId>
+         <!-- There are newer versions of the JUnit but thet break our tests -->
+         <version>3.8.2</version>
+      </dependency>
    </dependencies>
 
    <profiles>

Copied: trunk/hornetq-journal/src/test/java/org/hornetq/tests/asyncio/LibaioDependencyCheckTest.java (from rev 11847, trunk/tests/unit-tests/src/test/java/org/hornetq/tests/unit/core/asyncio/LibaioDependencyCheckTest.java)
===================================================================
--- trunk/hornetq-journal/src/test/java/org/hornetq/tests/asyncio/LibaioDependencyCheckTest.java	                        (rev 0)
+++ trunk/hornetq-journal/src/test/java/org/hornetq/tests/asyncio/LibaioDependencyCheckTest.java	2011-12-06 10:33:14 UTC (rev 11851)
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2010 Red Hat, Inc.
+ * Red Hat licenses this file to you under the Apache License, version
+ * 2.0 (the "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.  See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+
+package org.hornetq.tests.asyncio;
+
+import junit.framework.TestCase;
+import org.hornetq.core.asyncio.impl.AsynchronousFileImpl;
+
+/**
+ * A LibaioDependencyCheckTest
+ *
+ * @author <mailto:clebert.suconic at jboss.org">Clebert Suconic</a>
+ *
+ *
+ */
+public class LibaioDependencyCheckTest extends TestCase
+{
+
+   // Constants -----------------------------------------------------
+
+   // Attributes ----------------------------------------------------
+
+   // Static --------------------------------------------------------
+
+   // Constructors --------------------------------------------------
+
+   // Public --------------------------------------------------------
+
+   public void testDependency() throws Exception
+   {
+      if (System.getProperties().get("os.name").equals("Linux"))
+      {
+         assertTrue("Libaio is not available on this platform", AsynchronousFileImpl.isLoaded());
+      }
+   }
+
+   // Package protected ---------------------------------------------
+
+   // Protected -----------------------------------------------------
+
+   // Private -------------------------------------------------------
+
+   // Inner classes -------------------------------------------------
+
+}

Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml	2011-12-06 10:27:49 UTC (rev 11850)
+++ trunk/pom.xml	2011-12-06 10:33:14 UTC (rev 11851)
@@ -475,7 +475,7 @@
                   <testFailureIgnore>true</testFailureIgnore>
                   <runOrder>alphabetical</runOrder>
                   <redirectTestOutputToFile>false</redirectTestOutputToFile>
-                  <argLine>-Djava.util.logging.config.file=${user.dir}/distribution/hornetq/src/main/resources/stand-alone/non-clustered/logging.properties</argLine>
+                  <argLine>-Djava.util.logging.config.file=${user.dir}/distribution/hornetq/src/main/resources/stand-alone/non-clustered/logging.properties -Djava.library.path=${user.dir}/distribution/hornetq/src/main/resources/bin/</argLine>
                </configuration>
             </plugin>
             <plugin>



More information about the hornetq-commits mailing list