Skip to content

Commit

Permalink
moved libaio test into hornetq journal module and fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
andytaylor committed Dec 6, 2011
1 parent 710f231 commit c123b1e
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 1 deletion.
7 changes: 7 additions & 0 deletions hornetq-journal/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
@@ -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:[email protected]">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 -------------------------------------------------

}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit c123b1e

Please sign in to comment.