BAEL-1433: Minor changes.
This commit is contained in:
parent
a5f78cf7d5
commit
6b323c45cc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue