Skip to content

Instantly share code, notes, and snippets.

@bufferings
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bufferings/5a1f36629f061269a8a7 to your computer and use it in GitHub Desktop.
Save bufferings/5a1f36629f061269a8a7 to your computer and use it in GitHub Desktop.
public class QuizTest {
static class String {
public String(java.lang.String ignore) {
}
public boolean equals(Object anObject) {
return true;
}
}
@Test
public void test2() throws Exception {
final String abc = new String("abc");
final String def = new String("def");
assertThat(abc, is(def));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment