MultiComparisonNode extends ComparisonNode<MultiComparisonNode.Type, List<Object>> { public void addValue(final Object value) { this.getComparisonValue().add(value); } MultiComparisonNode(final Type comparisonType, final String comparisonProperty);  MultiComparisonNode(final Type comparisonType, final String comparisonProperty,
            final List<Object> comparisonPropertyValues); void addValue(final Object value); void accept(final PredicateVisitor predicateVisitor);  }
@Test public void typeConstructorSuccess() { final MultiComparisonNode filterNode = new MultiComparisonNode( MultiComparisonNode.Type.IN, "propertyName"); assertThat(filterNode.getComparisonType()).isEqualTo( MultiComparisonNode.Type.IN); assertThat(filterNode.getComparisonProperty()).isEqualTo("propertyName"); assertThat(filterNode.getComparisonValue()).isEmpty(); filterNode.addValue("test"); assertThat(filterNode.getComparisonValue().get(0)).isEqualTo("test"); }
@Test public void addNullValues() { final MultiComparisonNode filterNode = new MultiComparisonNode( MultiComparisonNode.Type.IN, "propertyName"); filterNode.addValue("test1"); filterNode.addValue(null); filterNode.addValue("test2"); filterNode.addValue(null); filterNode.addValue(null); filterNode.addValue("test3"); assertThat(filterNode.getComparisonValue().get(0)).isEqualTo("test1"); assertThat(filterNode.getComparisonValue().get(1)).isNull(); assertThat(filterNode.getComparisonValue().get(2)).isEqualTo("test2"); assertThat(filterNode.getComparisonValue().get(3)).isNull(); assertThat(filterNode.getComparisonValue().get(4)).isNull(); assertThat(filterNode.getComparisonValue().get(5)).isEqualTo("test3"); }