use of org.apache.accumulo.iteratortest.IteratorTestInput in project accumulo by apache.
the class JUnitFrameworkTest method parameters.
@Parameters
public static Object[][] parameters() {
IteratorTestInput input = getIteratorInput();
IteratorTestOutput output = getIteratorOutput();
List<IteratorTestCase> tests = Collections.singletonList(new NoopIteratorTestCase());
return BaseJUnit4IteratorTest.createParameters(input, output, tests);
}
use of org.apache.accumulo.iteratortest.IteratorTestInput in project accumulo by apache.
the class AgeOffFilterTest method getIteratorInput.
private static IteratorTestInput getIteratorInput() {
IteratorSetting setting = new IteratorSetting(50, AgeOffFilter.class);
AgeOffFilter.setCurrentTime(setting, NOW);
AgeOffFilter.setTTL(setting, TTL);
return new IteratorTestInput(AgeOffFilter.class, setting.getOptions(), new Range(), INPUT_DATA);
}
use of org.apache.accumulo.iteratortest.IteratorTestInput 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.IteratorTestInput 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.IteratorTestInput in project accumulo by apache.
the class CfCqSliceFilterTest method getIteratorInput.
private static IteratorTestInput getIteratorInput() {
HashMap<String, String> options = new HashMap<>();
options.put(CfCqSliceOpts.OPT_MIN_CF, MIN_CF);
options.put(CfCqSliceOpts.OPT_MAX_CF, MAX_CF);
options.put(CfCqSliceOpts.OPT_MIN_CQ, MIN_CQ);
options.put(CfCqSliceOpts.OPT_MAX_CQ, MAX_CQ);
return new IteratorTestInput(CfCqSliceFilter.class, options, new Range(), INPUT_DATA);
}
Aggregations