@Test public void givenResultErrorWhenAddingErrorThenAddErrorIds() { final ResultError resultError = new ResultError(FILTERARGS.UNITS); resultError.addError("errorId"); assertEquals(1, resultError.getCurrentIds().size()); }
public ResultError addError(String error) { currentIds.add(error); scores.add(new Float(0)); return this; }
ResultError extends Result { public ResultError addError(String error) { currentIds.add(error); scores.add(new Float(0)); return this; } }
ResultError extends Result { public ResultError addError(String error) { currentIds.add(error); scores.add(new Float(0)); return this; } ResultError(FILTERARGS type);  ResultError(FILTERARGS type, final Set<String> set); }
ResultError extends Result { public ResultError addError(String error) { currentIds.add(error); scores.add(new Float(0)); return this; } ResultError(FILTERARGS type);  ResultError(FILTERARGS type, final Set<String> set); @Override boolean isError(); ResultError addError(String error); @Override ResultError putFrom(Result from); }
ResultError extends Result { public ResultError addError(String error) { currentIds.add(error); scores.add(new Float(0)); return this; } ResultError(FILTERARGS type);  ResultError(FILTERARGS type, final Set<String> set); @Override boolean isError(); ResultError addError(String error); @Override ResultError putFrom(Result from);  }