File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
group05/591010847/job_2017_02/job_2017_02_19_data_structure/src/test/com/java/xiaoqin/impl Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ package test .com .java .xiaoqin .impl ;
2
+
3
+ import com .java .xiaoqin .impl .BinaryTreeNode ;
4
+ import org .junit .After ;
5
+ import org .junit .Before ;
6
+ import org .junit .Test ;
7
+
8
+ /**
9
+ * BinaryTreeNode Tester.
10
+ *
11
+ * @author <Authors name>
12
+ * @version 1.0
13
+ * @since <pre>二月 27, 2017</pre>
14
+ */
15
+ public class BinaryTreeNodeTest {
16
+
17
+ private BinaryTreeNode <Integer > binaryTreeNode ;
18
+
19
+
20
+ @ Before
21
+ public void before () throws Exception {
22
+ binaryTreeNode = new BinaryTreeNode <>();
23
+ }
24
+
25
+ @ After
26
+ public void after () throws Exception {
27
+ binaryTreeNode = null ;
28
+ }
29
+
30
+ /**
31
+ * Method: insert(T o)
32
+ */
33
+ @ Test
34
+ public void testInsert () throws Exception {
35
+ binaryTreeNode .insert (5 );
36
+ binaryTreeNode .insert (2 );
37
+ binaryTreeNode .insert (7 );
38
+ binaryTreeNode .insert (1 );
39
+ binaryTreeNode .insert (6 );
40
+ System .out .println (binaryTreeNode .toString ());
41
+ binaryTreeNode .insert (4 );
42
+ binaryTreeNode .insert (8 );
43
+ System .out .println (binaryTreeNode .toString ());
44
+ }
45
+
46
+ }
You can’t perform that action at this time.
0 commit comments