Author: clebert.suconic(a)jboss.com
Date: 2009-11-06 15:38:14 -0500 (Fri, 06 Nov 2009)
New Revision: 8247
Added:
trunk/tests/src/org/hornetq/tests/timing/core/journal/impl/AIOJournalImplTest.java
trunk/tests/src/org/hornetq/tests/timing/core/journal/impl/NIOJournalImplTest.java
Removed:
trunk/tests/src/org/hornetq/tests/timing/core/journal/impl/RealJournalImplAIOTest.java
trunk/tests/src/org/hornetq/tests/timing/core/journal/impl/RealJournalImplTest.java
Log:
tweaks
Copied: trunk/tests/src/org/hornetq/tests/timing/core/journal/impl/AIOJournalImplTest.java
(from rev 8244,
trunk/tests/src/org/hornetq/tests/timing/core/journal/impl/RealJournalImplAIOTest.java)
===================================================================
--- trunk/tests/src/org/hornetq/tests/timing/core/journal/impl/AIOJournalImplTest.java
(rev 0)
+++
trunk/tests/src/org/hornetq/tests/timing/core/journal/impl/AIOJournalImplTest.java 2009-11-06
20:38:14 UTC (rev 8247)
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2009 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.timing.core.journal.impl;
+
+import java.io.File;
+
+import junit.framework.TestSuite;
+
+import org.hornetq.core.asyncio.impl.AsynchronousFileImpl;
+import org.hornetq.core.journal.SequentialFileFactory;
+import org.hornetq.core.journal.impl.AIOSequentialFileFactory;
+import org.hornetq.core.logging.Logger;
+
+/**
+ *
+ * A RealJournalImplTest
+ *
+ * @author <a href="mailto:tim.fox@jboss.com">Tim Fox</a>
+ *
+ */
+public class AIOJournalImplTest extends JournalImplTestUnit
+{
+ private static final Logger log = Logger.getLogger(AIOJournalImplTest.class);
+
+ public static TestSuite suite()
+ {
+ return createAIOTestSuite(AIOJournalImplTest.class);
+ }
+
+ @Override
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected SequentialFileFactory getFileFactory() throws Exception
+ {
+ File file = new File(getTestDir());
+
+ deleteDirectory(file);
+
+ file.mkdir();
+
+ return new AIOSequentialFileFactory(getTestDir());
+ }
+
+}
Copied: trunk/tests/src/org/hornetq/tests/timing/core/journal/impl/NIOJournalImplTest.java
(from rev 8244,
trunk/tests/src/org/hornetq/tests/timing/core/journal/impl/RealJournalImplTest.java)
===================================================================
--- trunk/tests/src/org/hornetq/tests/timing/core/journal/impl/NIOJournalImplTest.java
(rev 0)
+++
trunk/tests/src/org/hornetq/tests/timing/core/journal/impl/NIOJournalImplTest.java 2009-11-06
20:38:14 UTC (rev 8247)
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2009 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.timing.core.journal.impl;
+
+import java.io.File;
+
+import org.hornetq.core.journal.SequentialFileFactory;
+import org.hornetq.core.journal.impl.NIOSequentialFileFactory;
+import org.hornetq.core.logging.Logger;
+
+/**
+ *
+ * A RealJournalImplTest
+ *
+ * @author <a href="mailto:tim.fox@jboss.com">Tim Fox</a>
+ * @author <a href="mailto:clebert.suconic@jboss.com">Clebert
Suconic</a>
+ *
+ */
+public class NIOJournalImplTest extends JournalImplTestUnit
+{
+ private static final Logger log = Logger.getLogger(NIOJournalImplTest.class);
+
+ protected String journalDir = System.getProperty("user.home") +
"/journal-test";
+
+ protected SequentialFileFactory getFileFactory() throws Exception
+ {
+ File file = new File(journalDir);
+
+ log.debug("deleting directory " + journalDir);
+
+ deleteDirectory(file);
+
+ file.mkdir();
+
+ return new NIOSequentialFileFactory(journalDir);
+ }
+
+
+}
+
Deleted:
trunk/tests/src/org/hornetq/tests/timing/core/journal/impl/RealJournalImplAIOTest.java
===================================================================
---
trunk/tests/src/org/hornetq/tests/timing/core/journal/impl/RealJournalImplAIOTest.java 2009-11-06
20:34:55 UTC (rev 8246)
+++
trunk/tests/src/org/hornetq/tests/timing/core/journal/impl/RealJournalImplAIOTest.java 2009-11-06
20:38:14 UTC (rev 8247)
@@ -1,58 +0,0 @@
-/*
- * Copyright 2009 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.timing.core.journal.impl;
-
-import java.io.File;
-
-import junit.framework.TestSuite;
-
-import org.hornetq.core.asyncio.impl.AsynchronousFileImpl;
-import org.hornetq.core.journal.SequentialFileFactory;
-import org.hornetq.core.journal.impl.AIOSequentialFileFactory;
-import org.hornetq.core.logging.Logger;
-
-/**
- *
- * A RealJournalImplTest
- *
- * @author <a href="mailto:tim.fox@jboss.com">Tim Fox</a>
- *
- */
-public class RealJournalImplAIOTest extends JournalImplTestUnit
-{
- private static final Logger log = Logger.getLogger(RealJournalImplAIOTest.class);
-
- public static TestSuite suite()
- {
- return createAIOTestSuite(RealJournalImplAIOTest.class);
- }
-
- @Override
- protected void setUp() throws Exception
- {
- super.setUp();
- }
-
- protected SequentialFileFactory getFileFactory() throws Exception
- {
- File file = new File(getTestDir());
-
- deleteDirectory(file);
-
- file.mkdir();
-
- return new AIOSequentialFileFactory(getTestDir());
- }
-
-}
Deleted:
trunk/tests/src/org/hornetq/tests/timing/core/journal/impl/RealJournalImplTest.java
===================================================================
---
trunk/tests/src/org/hornetq/tests/timing/core/journal/impl/RealJournalImplTest.java 2009-11-06
20:34:55 UTC (rev 8246)
+++
trunk/tests/src/org/hornetq/tests/timing/core/journal/impl/RealJournalImplTest.java 2009-11-06
20:38:14 UTC (rev 8247)
@@ -1,51 +0,0 @@
-/*
- * Copyright 2009 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.timing.core.journal.impl;
-
-import java.io.File;
-
-import org.hornetq.core.journal.SequentialFileFactory;
-import org.hornetq.core.journal.impl.NIOSequentialFileFactory;
-import org.hornetq.core.logging.Logger;
-
-/**
- *
- * A RealJournalImplTest
- *
- * @author <a href="mailto:tim.fox@jboss.com">Tim Fox</a>
- * @author <a href="mailto:clebert.suconic@jboss.com">Clebert
Suconic</a>
- *
- */
-public class RealJournalImplTest extends JournalImplTestUnit
-{
- private static final Logger log = Logger.getLogger(RealJournalImplTest.class);
-
- protected String journalDir = System.getProperty("user.home") +
"/journal-test";
-
- protected SequentialFileFactory getFileFactory() throws Exception
- {
- File file = new File(journalDir);
-
- log.debug("deleting directory " + journalDir);
-
- deleteDirectory(file);
-
- file.mkdir();
-
- return new NIOSequentialFileFactory(journalDir);
- }
-
-
-}
-