示例#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());
 }