Vincent Sima 6 years ago
parent
commit
14c5ee7e9f
3 changed files with 76 additions and 24 deletions
  1. 2
    0
      README.TXT
  2. 42
    0
      StudentTest.java
  3. 32
    24
      package.bluej

+ 2
- 0
README.TXT View File

11
 
11
 
12
 This project may be used to study object creation and method calls from
12
 This project may be used to study object creation and method calls from
13
 within other object (non-interactive).
13
 within other object (non-interactive).
14
+
15
+Vincent Sima

+ 42
- 0
StudentTest.java View File

1
+
2
+
3
+import static org.junit.Assert.*;
4
+import org.junit.After;
5
+import org.junit.Before;
6
+import org.junit.Test;
7
+
8
+/**
9
+ * The test class StudentTest.
10
+ *
11
+ * @author  (your name)
12
+ * @version (a version number or a date)
13
+ */
14
+public class StudentTest
15
+{
16
+    /**
17
+     * Default constructor for test class StudentTest
18
+     */
19
+    public StudentTest()
20
+    {
21
+    }
22
+
23
+    /**
24
+     * Sets up the test fixture.
25
+     *
26
+     * Called before every test case method.
27
+     */
28
+    @Before
29
+    public void setUp()
30
+    {
31
+    }
32
+
33
+    /**
34
+     * Tears down the test fixture.
35
+     *
36
+     * Called after every test case method.
37
+     */
38
+    @After
39
+    public void tearDown()
40
+    {
41
+    }
42
+}

+ 32
- 24
package.bluej View File

5
 dependency2.from=Person
5
 dependency2.from=Person
6
 dependency2.to=Address
6
 dependency2.to=Address
7
 dependency2.type=UsesDependency
7
 dependency2.type=UsesDependency
8
-editor.fx.0.height=722
8
+editor.fx.0.height=714
9
 editor.fx.0.width=800
9
 editor.fx.0.width=800
10
-editor.fx.0.x=2941
11
-editor.fx.0.y=59
10
+editor.fx.0.x=480
11
+editor.fx.0.y=23
12
 objectbench.height=106
12
 objectbench.height=106
13
-objectbench.width=461
13
+objectbench.width=776
14
 package.divider.horizontal=0.6
14
 package.divider.horizontal=0.6
15
 package.divider.vertical=0.7915129151291513
15
 package.divider.vertical=0.7915129151291513
16
 package.editor.height=422
16
 package.editor.height=422
17
 package.editor.width=674
17
 package.editor.width=674
18
-package.editor.x=2110
19
-package.editor.y=77
18
+package.editor.x=109
19
+package.editor.y=87
20
 package.frame.height=600
20
 package.frame.height=600
21
 package.frame.width=800
21
 package.frame.width=800
22
 package.numDependencies=2
22
 package.numDependencies=2
23
-package.numTargets=5
23
+package.numTargets=6
24
 package.showExtends=true
24
 package.showExtends=true
25
 package.showUses=true
25
 package.showUses=true
26
 project.charset=UTF-8
26
 project.charset=UTF-8
30
 readme.x=10
30
 readme.x=10
31
 readme.y=10
31
 readme.y=10
32
 target1.height=50
32
 target1.height=50
33
-target1.name=Address
33
+target1.name=StudentTest
34
 target1.showInterface=false
34
 target1.showInterface=false
35
-target1.type=ClassTarget
35
+target1.type=UnitTestTargetJunit4
36
 target1.width=80
36
 target1.width=80
37
-target1.x=300
38
-target1.y=20
37
+target1.x=290
38
+target1.y=190
39
 target2.height=50
39
 target2.height=50
40
-target2.name=Staff
40
+target2.name=Address
41
 target2.showInterface=false
41
 target2.showInterface=false
42
 target2.type=ClassTarget
42
 target2.type=ClassTarget
43
 target2.width=80
43
 target2.width=80
44
-target2.x=130
45
-target2.y=220
44
+target2.x=300
45
+target2.y=20
46
 target3.height=50
46
 target3.height=50
47
-target3.name=Database
47
+target3.name=Staff
48
 target3.showInterface=false
48
 target3.showInterface=false
49
 target3.type=ClassTarget
49
 target3.type=ClassTarget
50
 target3.width=80
50
 target3.width=80
51
-target3.x=90
52
-target3.y=40
51
+target3.x=130
52
+target3.y=220
53
 target4.height=50
53
 target4.height=50
54
-target4.name=Student
54
+target4.name=Database
55
 target4.showInterface=false
55
 target4.showInterface=false
56
 target4.type=ClassTarget
56
 target4.type=ClassTarget
57
 target4.width=80
57
 target4.width=80
58
-target4.x=260
59
-target4.y=220
58
+target4.x=90
59
+target4.y=40
60
+target5.association=StudentTest
60
 target5.height=50
61
 target5.height=50
61
-target5.name=Person
62
+target5.name=Student
62
 target5.showInterface=false
63
 target5.showInterface=false
63
-target5.type=AbstractTarget
64
+target5.type=ClassTarget
64
 target5.width=80
65
 target5.width=80
65
-target5.x=190
66
-target5.y=110
66
+target5.x=260
67
+target5.y=220
68
+target6.height=50
69
+target6.name=Person
70
+target6.showInterface=false
71
+target6.type=AbstractTarget
72
+target6.width=80
73
+target6.x=190
74
+target6.y=110