Skip to content
Snippets Groups Projects
Commit b66dc890 authored by Sean Busbey's avatar Sean Busbey
Browse files

Merge pull request #435 from cmccoy/hbase-skip-tests-on-windows

[hbase10] Skip HBase MiniCluster tests on Windows

fixes #434 
parents 57b22910 7501ad03
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@
package com.yahoo.ycsb.db;
import static org.junit.Assume.assumeTrue;
import static org.junit.Assert.*;
import com.yahoo.ycsb.ByteIterator;
......@@ -56,6 +57,11 @@ public class HBaseClient10Test {
private HBaseClient10 client;
private Table table = null;
private static boolean isWindows() {
final String os = System.getProperty("os.name");
return os.startsWith("Windows");
}
/**
* Creates a mini-cluster for use in these tests.
*
......@@ -63,6 +69,9 @@ public class HBaseClient10Test {
*/
@BeforeClass
public static void setUpClass() throws Exception {
// Minicluster setup fails on Windows with an UnsatisfiedLinkError.
// Skip if windows.
assumeTrue(!isWindows());
testingUtil = HBaseTestingUtility.createLocalHTU();
testingUtil.startMiniCluster();
}
......@@ -72,7 +81,9 @@ public class HBaseClient10Test {
*/
@AfterClass
public static void tearDownClass() throws Exception {
testingUtil.shutdownMiniCluster();
if (testingUtil != null) {
testingUtil.shutdownMiniCluster();
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment