RemoveLinesDataModifier implements DataFilterJob<String> { @Override public void setParameters(Map<String, String> params) throws ParametersException { dataRanges = params.get(DATA_RANGES); patternRanges = params.get(PATTERN_RANGES); validateParameters(dataRanges, patternRanges); dataIndexesToRemove = extractIndexes(dataRanges); patternIndexesToRemove = extractIndexes(patternRanges); }  @Override void setParameters(Map<String, String> params); @Override String modifyData(String data); @Override String modifyPattern(String data); @Override String getInfo(); void validateParameters(String dataRanges, String patternRanges); static final String NAME; }
@TestWith({"2,1-4,5", "1,1;10,12-10,12;15,14;13,14"}) public void testBadRanges(String dataRanges, String patternRanges) throws ParametersException, ProcessingException { Map<String, String> params = new HashMap<String, String>(); params.put("dataRanges", dataRanges); params.put("patternRanges", patternRanges); verifyException(tested, ParametersException.class).setParameters(params); }