@Test public void testCheckConditionShouldReturnFalseWhenParameterListIsEmpty() { boolean result = underTest.checkCondition(request, paramList); assertFalse(result); }
@Override public boolean checkCondition(final WilmaHttpRequest request, final ParameterList parameters) { List<Parameter> params = parameters.getAllParameters(); Iterator<Parameter> iterator = params.iterator(); boolean result = false; if (!params.isEmpty()) { while (iterator.hasNext() && !result) { result = evaluateParameter(request, iterator.next()); } } return result; }
OrUrlPatternChecker implements ConditionChecker { @Override public boolean checkCondition(final WilmaHttpRequest request, final ParameterList parameters) { List<Parameter> params = parameters.getAllParameters(); Iterator<Parameter> iterator = params.iterator(); boolean result = false; if (!params.isEmpty()) { while (iterator.hasNext() && !result) { result = evaluateParameter(request, iterator.next()); } } return result; } }
OrUrlPatternChecker implements ConditionChecker { @Override public boolean checkCondition(final WilmaHttpRequest request, final ParameterList parameters) { List<Parameter> params = parameters.getAllParameters(); Iterator<Parameter> iterator = params.iterator(); boolean result = false; if (!params.isEmpty()) { while (iterator.hasNext() && !result) { result = evaluateParameter(request, iterator.next()); } } return result; }  }
OrUrlPatternChecker implements ConditionChecker { @Override public boolean checkCondition(final WilmaHttpRequest request, final ParameterList parameters) { List<Parameter> params = parameters.getAllParameters(); Iterator<Parameter> iterator = params.iterator(); boolean result = false; if (!params.isEmpty()) { while (iterator.hasNext() && !result) { result = evaluateParameter(request, iterator.next()); } } return result; }  @Override boolean checkCondition(final WilmaHttpRequest request, final ParameterList parameters); }
OrUrlPatternChecker implements ConditionChecker { @Override public boolean checkCondition(final WilmaHttpRequest request, final ParameterList parameters) { List<Parameter> params = parameters.getAllParameters(); Iterator<Parameter> iterator = params.iterator(); boolean result = false; if (!params.isEmpty()) { while (iterator.hasNext() && !result) { result = evaluateParameter(request, iterator.next()); } } return result; }  @Override boolean checkCondition(final WilmaHttpRequest request, final ParameterList parameters);  }