@@ -11,7 +11,7 @@ public class BSTTest {
11
11
12
12
@ Test
13
13
public void dataIsRetained () {
14
- BST <Integer > bst = new BST ();
14
+ BST <Integer > bst = new BST <> ();
15
15
final int actual = 4 ;
16
16
bst .insert (actual );
17
17
final BST .Node <Integer > root = bst .getRoot ();
@@ -23,7 +23,7 @@ public void dataIsRetained() {
23
23
@ Ignore ("Remove to run test" )
24
24
@ Test
25
25
public void insertsLess () {
26
- BST <Integer > bst = new BST ();
26
+ BST <Integer > bst = new BST <> ();
27
27
final int expectedRoot = 4 ;
28
28
final int expectedLeft = 2 ;
29
29
@@ -44,7 +44,7 @@ public void insertsLess() {
44
44
@ Ignore ("Remove to run test" )
45
45
@ Test
46
46
public void insertsSame () {
47
- BST <Integer > bst = new BST ();
47
+ BST <Integer > bst = new BST <> ();
48
48
final int expectedRoot = 4 ;
49
49
final int expectedLeft = 4 ;
50
50
@@ -65,7 +65,7 @@ public void insertsSame() {
65
65
@ Ignore ("Remove to run test" )
66
66
@ Test
67
67
public void insertsRight () {
68
- BST <Integer > bst = new BST ();
68
+ BST <Integer > bst = new BST <> ();
69
69
final int expectedRoot = 4 ;
70
70
final int expectedRight = 5 ;
71
71
0 commit comments