Tommy Rogers преди 6 години
родител
ревизия
d67e2a7c7a
променени са 4 файла, в които са добавени 128 реда и са изтрити 25 реда
  1. 3
    0
      README.TXT
  2. 42
    0
      StaffTest.java
  3. 42
    0
      StudentTest.java
  4. 41
    25
      package.bluej

+ 3
- 0
README.TXT Целия файл

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
+
16
+Tommy Rogers

+ 42
- 0
StaffTest.java Целия файл

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 StaffTest.
10
+ *
11
+ * @author  (your name)
12
+ * @version (a version number or a date)
13
+ */
14
+public class StaffTest
15
+{
16
+    /**
17
+     * Default constructor for test class StaffTest
18
+     */
19
+    public StaffTest()
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
+}

+ 42
- 0
StudentTest.java Целия файл

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
+}

+ 41
- 25
package.bluej Целия файл

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
9
-editor.fx.0.width=800
10
-editor.fx.0.x=2941
11
-editor.fx.0.y=59
8
+editor.fx.0.height=0
9
+editor.fx.0.width=0
10
+editor.fx.0.x=0
11
+editor.fx.0.y=0
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=100
19
+package.editor.y=100
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=7
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.association=StaffTest
46
 target3.height=50
47
 target3.height=50
47
-target3.name=Database
48
+target3.name=Staff
48
 target3.showInterface=false
49
 target3.showInterface=false
49
 target3.type=ClassTarget
50
 target3.type=ClassTarget
50
 target3.width=80
51
 target3.width=80
51
-target3.x=90
52
-target3.y=40
52
+target3.x=130
53
+target3.y=220
53
 target4.height=50
54
 target4.height=50
54
-target4.name=Student
55
+target4.name=Database
55
 target4.showInterface=false
56
 target4.showInterface=false
56
 target4.type=ClassTarget
57
 target4.type=ClassTarget
57
 target4.width=80
58
 target4.width=80
58
-target4.x=260
59
-target4.y=220
59
+target4.x=90
60
+target4.y=40
60
 target5.height=50
61
 target5.height=50
61
-target5.name=Person
62
+target5.name=StaffTest
62
 target5.showInterface=false
63
 target5.showInterface=false
63
-target5.type=AbstractTarget
64
+target5.type=UnitTestTargetJunit4
64
 target5.width=80
65
 target5.width=80
65
-target5.x=190
66
-target5.y=110
66
+target5.x=160
67
+target5.y=190
68
+target6.association=StudentTest
69
+target6.height=50
70
+target6.name=Student
71
+target6.showInterface=false
72
+target6.type=ClassTarget
73
+target6.width=80
74
+target6.x=260
75
+target6.y=220
76
+target7.height=50
77
+target7.name=Person
78
+target7.showInterface=false
79
+target7.type=AbstractTarget
80
+target7.width=80
81
+target7.x=220
82
+target7.y=110