Created
November 24, 2010 20:25
-
-
Save abyx/714338 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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