@Test public void testStringRepresentation() { assertThat(new StringSetMatcher(values).toString(), startsWith("in(")); }
@Override public String toString() { StringBuilder stringBuilder = new StringBuilder().append("in("); boolean first = true; for (String value : values) { if (first) { first = false; } else { stringBuilder.append(", "); } stringBuilder.append(value); } return stringBuilder.append(")").toString(); }
StringSetMatcher extends ElementMatcher.Junction.AbstractBase<String> { @Override public String toString() { StringBuilder stringBuilder = new StringBuilder().append("in("); boolean first = true; for (String value : values) { if (first) { first = false; } else { stringBuilder.append(", "); } stringBuilder.append(value); } return stringBuilder.append(")").toString(); } }
StringSetMatcher extends ElementMatcher.Junction.AbstractBase<String> { @Override public String toString() { StringBuilder stringBuilder = new StringBuilder().append("in("); boolean first = true; for (String value : values) { if (first) { first = false; } else { stringBuilder.append(", "); } stringBuilder.append(value); } return stringBuilder.append(")").toString(); } StringSetMatcher(Set<String> values); }
StringSetMatcher extends ElementMatcher.Junction.AbstractBase<String> { @Override public String toString() { StringBuilder stringBuilder = new StringBuilder().append("in("); boolean first = true; for (String value : values) { if (first) { first = false; } else { stringBuilder.append(", "); } stringBuilder.append(value); } return stringBuilder.append(")").toString(); } StringSetMatcher(Set<String> values); @Override boolean matches(String target); @Override String toString(); }
StringSetMatcher extends ElementMatcher.Junction.AbstractBase<String> { @Override public String toString() { StringBuilder stringBuilder = new StringBuilder().append("in("); boolean first = true; for (String value : values) { if (first) { first = false; } else { stringBuilder.append(", "); } stringBuilder.append(value); } return stringBuilder.append(")").toString(); } StringSetMatcher(Set<String> values); @Override boolean matches(String target); @Override String toString();  }