public boolean matches(Object actual) { if (!(actual instanceof Setting)) { return false; } String name = ((Setting) actual).getName(); String value = ((Setting) actual).getValue(); return expected.getName().equals(name) && expected.getValue().equals(value); }
public void appendTo(StringBuffer buffer) { buffer.append(expected.getName() + ", " + expected.getValue()); }