use of org.apache.accumulo.iteratortest.IteratorTestOutput in project accumulo by apache.
the class MultipleHasTopCalls method test.
@Override
public IteratorTestOutput test(IteratorTestInput testInput) {
final SortedKeyValueIterator<Key, Value> skvi = IteratorTestUtil.instantiateIterator(testInput);
final SortedKeyValueIterator<Key, Value> source = IteratorTestUtil.createSource(testInput);
try {
skvi.init(source, testInput.getIteratorOptions(), new SimpleIteratorEnvironment());
skvi.seek(testInput.getRange(), testInput.getFamilies(), testInput.isInclusive());
return new IteratorTestOutput(consume(skvi));
} catch (IOException e) {
return new IteratorTestOutput(e);
}
}
use of org.apache.accumulo.iteratortest.IteratorTestOutput in project accumulo by apache.
the class AgeOffFilterTest method parameters.
@Parameters
public static Object[][] parameters() {
// Test ageoff after 30 seconds.
NOW = System.currentTimeMillis();
TTL = 30 * 1000;
IteratorTestInput input = getIteratorInput();
IteratorTestOutput output = getIteratorOutput();
List<IteratorTestCase> tests = IteratorTestCaseFinder.findAllTestCases();
return BaseJUnit4IteratorTest.createParameters(input, output, tests);
}
use of org.apache.accumulo.iteratortest.IteratorTestOutput in project accumulo by apache.
the class CfCqSliceFilterTest method parameters.
@Parameters
public static Object[][] parameters() {
IteratorTestInput input = getIteratorInput();
IteratorTestOutput output = getIteratorOutput();
List<IteratorTestCase> tests = IteratorTestCaseFinder.findAllTestCases();
return BaseJUnit4IteratorTest.createParameters(input, output, tests);
}
use of org.apache.accumulo.iteratortest.IteratorTestOutput in project accumulo by apache.
the class SummingCombinerTest method parameters.
@Parameters
public static Object[][] parameters() {
IteratorTestInput input = getIteratorInput();
IteratorTestOutput output = getIteratorOutput();
List<IteratorTestCase> tests = IteratorTestCaseFinder.findAllTestCases();
return BaseJUnit4IteratorTest.createParameters(input, output, tests);
}
use of org.apache.accumulo.iteratortest.IteratorTestOutput in project accumulo by apache.
the class WholeRowIteratorTest method parameters.
@Parameters
public static Object[][] parameters() {
IteratorTestInput input = getIteratorInput();
IteratorTestOutput output = getIteratorOutput();
List<IteratorTestCase> tests = IteratorTestCaseFinder.findAllTestCases();
return BaseJUnit4IteratorTest.createParameters(input, output, tests);
}
Aggregations