Skip to content

Instantly share code, notes, and snippets.

@abyx
Created November 24, 2010 20:25
Show Gist options
  • Select an option

  • Save abyx/714338 to your computer and use it in GitHub Desktop.

Select an option

Save abyx/714338 to your computer and use it in GitHub Desktop.
public class AccountTest {
@Test public void contains() throws Exception {
SortedSet<Account> set = new TreeSet<Account>(Account.NAME_COMPARATOR);
Account first = new Account("first", 1);
set.add(first);
Account otherFirst = new Account("first", 2);
assertFalse(set.contains(otherFirst));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment