@Test public void testAndNoConditionsSet() throws Exception { conditionAnd.getConditions().clear(); assertFalse(conditionAnd.evaluate(adaptrisMessage)); }
@Override public boolean evaluate(AdaptrisMessage message) throws CoreException { if(this.getConditions().size() == 0) return false; boolean returnValue = true; for(Condition condition : this.getConditions()) { if(!condition.evaluate(message)) { returnValue = false; break; } } return returnValue; }
ConditionAnd extends ConditionListImpl { @Override public boolean evaluate(AdaptrisMessage message) throws CoreException { if(this.getConditions().size() == 0) return false; boolean returnValue = true; for(Condition condition : this.getConditions()) { if(!condition.evaluate(message)) { returnValue = false; break; } } return returnValue; } }
ConditionAnd extends ConditionListImpl { @Override public boolean evaluate(AdaptrisMessage message) throws CoreException { if(this.getConditions().size() == 0) return false; boolean returnValue = true; for(Condition condition : this.getConditions()) { if(!condition.evaluate(message)) { returnValue = false; break; } } return returnValue; } ConditionAnd(); }
ConditionAnd extends ConditionListImpl { @Override public boolean evaluate(AdaptrisMessage message) throws CoreException { if(this.getConditions().size() == 0) return false; boolean returnValue = true; for(Condition condition : this.getConditions()) { if(!condition.evaluate(message)) { returnValue = false; break; } } return returnValue; } ConditionAnd(); @Override boolean evaluate(AdaptrisMessage message); }
ConditionAnd extends ConditionListImpl { @Override public boolean evaluate(AdaptrisMessage message) throws CoreException { if(this.getConditions().size() == 0) return false; boolean returnValue = true; for(Condition condition : this.getConditions()) { if(!condition.evaluate(message)) { returnValue = false; break; } } return returnValue; } ConditionAnd(); @Override boolean evaluate(AdaptrisMessage message);  }