public class TestResult extends junit.framework.TestCase
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
| Constructor and Description |
|---|
TestResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
doReadBenchmark()
Microbenchmark that compares
Result.getValue(byte[], byte[]) and Result.loadValue(byte[], byte[], java.nio.ByteBuffer) performance. |
static void |
main(String[] args)
Calls non-functional test methods.
|
void |
testAdvanceTwiceOnEmptyCell() |
void |
testBasicGetColumn() |
void |
testBasicGetValue() |
void |
testBasicLoadValue() |
void |
testCompareResults()
Verify that Result.compareResults(...) behaves correctly.
|
void |
testCurrentOnEmptyCell() |
void |
testEmptyResultIsReadonly()
Verifies that one can't modify instance of EMPTY_RESULT.
|
void |
testMultiVersionGetColumn() |
void |
testMultiVersionGetValue() |
void |
testMultiVersionLoadValue() |
void |
testResultAsCellScanner()
Run some tests to ensure Result acts like a proper CellScanner.
|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringpublic static final HBaseClassTestRule CLASS_RULE
public TestResult()
public void testResultAsCellScanner() throws IOException
IOExceptionpublic void testBasicGetColumn() throws Exception
Exceptionpublic void testCurrentOnEmptyCell() throws IOException
IOExceptionpublic void testAdvanceTwiceOnEmptyCell() throws IOException
IOExceptionpublic void testMultiVersionGetColumn() throws Exception
Exceptionpublic void testBasicGetValue() throws Exception
Exceptionpublic void testMultiVersionGetValue() throws Exception
Exceptionpublic void testBasicLoadValue() throws Exception
Exceptionpublic void testMultiVersionLoadValue() throws Exception
Exceptionpublic void testCompareResults() throws Exception
Exceptionpublic void testEmptyResultIsReadonly()
public void doReadBenchmark() throws Exception
Result.getValue(byte[], byte[]) and Result.loadValue(byte[], byte[], java.nio.ByteBuffer) performance.ExceptionCopyright © 2007–2019 Cloudera. All rights reserved.