Created
July 28, 2009 18:12
-
-
Save carlism/157574 to your computer and use it in GitHub Desktop.
This file contains 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
private ArrayList<Integer> d = new ArrayList<Integer>(); | |
@Test | |
public void testSort() { | |
this.d.add(5); | |
this.d.add(10); | |
this.d.add(1); | |
Collections.sort(this.d); // -> I'm getting a type mismatch here | |
assertEquals(1, this.d.get(0).intValue()); | |
assertEquals(5, this.d.get(1).intValue()); | |
assertEquals(10, this.d.get(2).intValue()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment