@Test public void buildConstraintsString() { OPERATOR operator = OPERATOR.LESS_THAN; Object value = 234; KiePMMLOperatorValue kiePMMLOperatorValue = new KiePMMLOperatorValue(operator, value); String retrieved = kiePMMLOperatorValue.buildConstraintsString(); String expected = String.format(VALUE_CONSTRAINT_PATTERN, operator.getOperator(), value); assertEquals(expected, retrieved); }
protected String buildConstraintsString() { return String.format(VALUE_CONSTRAINT_PATTERN, operator.getOperator(), value); }
KiePMMLOperatorValue { protected String buildConstraintsString() { return String.format(VALUE_CONSTRAINT_PATTERN, operator.getOperator(), value); } }
KiePMMLOperatorValue { protected String buildConstraintsString() { return String.format(VALUE_CONSTRAINT_PATTERN, operator.getOperator(), value); } KiePMMLOperatorValue(OPERATOR operator, Object value); }
KiePMMLOperatorValue { protected String buildConstraintsString() { return String.format(VALUE_CONSTRAINT_PATTERN, operator.getOperator(), value); } KiePMMLOperatorValue(OPERATOR operator, Object value); OPERATOR getOperator(); Object getValue(); String getConstraintsAsString(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
KiePMMLOperatorValue { protected String buildConstraintsString() { return String.format(VALUE_CONSTRAINT_PATTERN, operator.getOperator(), value); } KiePMMLOperatorValue(OPERATOR operator, Object value); OPERATOR getOperator(); Object getValue(); String getConstraintsAsString(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); static final String VALUE_CONSTRAINT_PATTERN; }