[hornetq-commits] JBoss hornetq SVN: r12147 - trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/client.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Feb 20 13:15:39 EST 2012


Author: clebert.suconic at jboss.com
Date: 2012-02-20 13:15:38 -0500 (Mon, 20 Feb 2012)
New Revision: 12147

Added:
   trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/client/LibaioDependencyCheckTest.java
Log:
Duplicating test to validate configuration of AIO

Added: trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/client/LibaioDependencyCheckTest.java
===================================================================
--- trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/client/LibaioDependencyCheckTest.java	                        (rev 0)
+++ trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/client/LibaioDependencyCheckTest.java	2012-02-20 18:15:38 UTC (rev 12147)
@@ -0,0 +1,58 @@
+/*
+ * 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.integration.client;
+
+import org.hornetq.core.asyncio.impl.AsynchronousFileImpl;
+import org.hornetq.tests.util.UnitTestCase;
+
+/**
+ * This tests is placed in duplication here to validate that the libaio module is properly loaded on this 
+ * test module.
+ * 
+ * This test should be placed on each one of the tests modules to make sure the library is loaded correctly.
+ *
+ * @author <mailto:clebert.suconic at jboss.org">Clebert Suconic</a>
+ *
+ *
+ */
+public class LibaioDependencyCheckTest extends UnitTestCase
+{
+
+   // 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 -------------------------------------------------
+
+}



More information about the hornetq-commits mailing list