Skip to content

Instantly share code, notes, and snippets.

@dehowell
Created July 27, 2010 23:16
Show Gist options
  • Save dehowell/493039 to your computer and use it in GitHub Desktop.
Save dehowell/493039 to your computer and use it in GitHub Desktop.
import org.apache.hadoop.hbase.HBaseTestingUtility;
import org.junit.*;
import static org.junit.Assert.*;
public class HBaseTest {
private static final HBaseTestingUtility TEST_UTIL = new HBaseTestingUtility();
@BeforeClass
public static void setUpBeforeClass() throws Exception {
TEST_UTIL.startMiniCluster(1);
}
@AfterClass
public static void tearDownAfterClass() throws Exception {
TEST_UTIL.shutdownMiniCluster();
}
@Test
public void testSetupShouldSucceed() throws Exception {
assertTrue(true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment