BAEL-1433: Minor changes.

This commit is contained in:
shouvikbhattacharya 2017-12-16 21:28:03 +05:30
parent a5f78cf7d5
commit 6b323c45cc
1 changed files with 7 additions and 2 deletions

View File

@ -26,7 +26,6 @@ public class WhenUsingTreeSet {
@Override @Override
public String toString() { public String toString() {
// TODO Auto-generated method stub
return id.toString(); return id.toString();
} }
} }
@ -189,8 +188,14 @@ public class WhenUsingTreeSet {
treeSet.add(5); treeSet.add(5);
treeSet.add(6); treeSet.add(6);
Set<Integer> expectedSet = new TreeSet<>();
expectedSet.add(2);
expectedSet.add(3);
expectedSet.add(4);
expectedSet.add(5);
Set<Integer> subSet = treeSet.subSet(2, 6); Set<Integer> subSet = treeSet.subSet(2, 6);
System.out.println(subSet); Assert.assertEquals(expectedSet, subSet);
} }
@Test @Test