Search in sources :

Example 6 with IteratorTestInput

use of org.apache.accumulo.iteratortest.IteratorTestInput 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);
}
Also used : IteratorTestOutput(org.apache.accumulo.iteratortest.IteratorTestOutput) IteratorTestCase(org.apache.accumulo.iteratortest.testcases.IteratorTestCase) IteratorTestInput(org.apache.accumulo.iteratortest.IteratorTestInput) Parameters(org.junit.runners.Parameterized.Parameters)

Example 7 with IteratorTestInput

use of org.apache.accumulo.iteratortest.IteratorTestInput in project accumulo by apache.

the class SummingCombinerTest method getIteratorInput.

private static IteratorTestInput getIteratorInput() {
    IteratorSetting setting = new IteratorSetting(50, SummingCombiner.class);
    LongCombiner.setEncodingType(setting, LongCombiner.Type.STRING);
    Combiner.setCombineAllColumns(setting, true);
    return new IteratorTestInput(SummingCombiner.class, setting.getOptions(), new Range(), INPUT_DATA);
}
Also used : IteratorSetting(org.apache.accumulo.core.client.IteratorSetting) IteratorTestInput(org.apache.accumulo.iteratortest.IteratorTestInput) Range(org.apache.accumulo.core.data.Range)

Example 8 with IteratorTestInput

use of org.apache.accumulo.iteratortest.IteratorTestInput 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);
}
Also used : IteratorTestOutput(org.apache.accumulo.iteratortest.IteratorTestOutput) IteratorTestCase(org.apache.accumulo.iteratortest.testcases.IteratorTestCase) IteratorTestInput(org.apache.accumulo.iteratortest.IteratorTestInput) Parameters(org.junit.runners.Parameterized.Parameters)

Aggregations

IteratorTestInput (org.apache.accumulo.iteratortest.IteratorTestInput)8 IteratorTestOutput (org.apache.accumulo.iteratortest.IteratorTestOutput)5 IteratorTestCase (org.apache.accumulo.iteratortest.testcases.IteratorTestCase)5 Parameters (org.junit.runners.Parameterized.Parameters)5 Range (org.apache.accumulo.core.data.Range)3 IteratorSetting (org.apache.accumulo.core.client.IteratorSetting)2 HashMap (java.util.HashMap)1