[hornetq-commits] JBoss hornetq SVN: r9529 - trunk/tests/src/org/hornetq/tests/integration/journal.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Aug 11 10:43:34 EDT 2010


Author: clebert.suconic at jboss.com
Date: 2010-08-11 10:43:33 -0400 (Wed, 11 Aug 2010)
New Revision: 9529

Added:
   trunk/tests/src/org/hornetq/tests/integration/journal/AIOImportExportTest.java
Log:
Adding test

Added: trunk/tests/src/org/hornetq/tests/integration/journal/AIOImportExportTest.java
===================================================================
--- trunk/tests/src/org/hornetq/tests/integration/journal/AIOImportExportTest.java	                        (rev 0)
+++ trunk/tests/src/org/hornetq/tests/integration/journal/AIOImportExportTest.java	2010-08-11 14:43:33 UTC (rev 9529)
@@ -0,0 +1,53 @@
+/*
+ * 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.journal;
+
+import java.io.File;
+
+import junit.framework.TestSuite;
+
+import org.hornetq.core.journal.SequentialFileFactory;
+import org.hornetq.core.journal.impl.AIOSequentialFileFactory;
+import org.hornetq.tests.util.UnitTestCase;
+
+/**
+ * A AIOImportExportTest
+ *
+ * @author <a href="mailto:clebert.suconic at jboss.org">Clebert Suconic</a>
+ *
+ *
+ */
+public class AIOImportExportTest extends NIOImportExportTest
+{
+   public static TestSuite suite()
+   {
+      // Ignore tests if AIO is not installed
+      return UnitTestCase.createAIOTestSuite(AIOImportExportTest.class);
+   }
+
+
+
+   @Override
+   protected SequentialFileFactory getFileFactory() throws Exception
+   {
+      File file = new File(getTestDir());
+
+      deleteDirectory(file);
+
+      file.mkdir();
+
+      return new AIOSequentialFileFactory(getTestDir());
+   }
+
+}



More information about the hornetq-commits mailing list