예제 #1
0
  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);
  }
예제 #2
0
 public void appendTo(StringBuffer buffer) {
   buffer.append(expected.getName() + ", " + expected.getValue());
 }