shakila 6 yıl önce
ebeveyn
işleme
edc14a860f
3 değiştirilmiş dosya ile 76 ekleme ve 24 silme
  1. 2
    0
      README.TXT
  2. 42
    0
      StudentTest.java
  3. 32
    24
      package.bluej

+ 2
- 0
README.TXT Dosyayı Görüntüle

@@ -11,3 +11,5 @@ in Person.
11 11
 
12 12
 This project may be used to study object creation and method calls from
13 13
 within other object (non-interactive).
14
+
15
+Shakila Muhammad

+ 42
- 0
StudentTest.java Dosyayı Görüntüle

@@ -0,0 +1,42 @@
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 Dosyayı Görüntüle

@@ -5,22 +5,22 @@ dependency1.type=UsesDependency
5 5
 dependency2.from=Person
6 6
 dependency2.to=Address
7 7
 dependency2.type=UsesDependency
8
-editor.fx.0.height=722
8
+editor.fx.0.height=712
9 9
 editor.fx.0.width=800
10
-editor.fx.0.x=2941
11
-editor.fx.0.y=59
10
+editor.fx.0.x=336
11
+editor.fx.0.y=23
12 12
 objectbench.height=106
13
-objectbench.width=461
13
+objectbench.width=776
14 14
 package.divider.horizontal=0.6
15 15
 package.divider.vertical=0.7915129151291513
16 16
 package.editor.height=422
17 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 20
 package.frame.height=600
21 21
 package.frame.width=800
22 22
 package.numDependencies=2
23
-package.numTargets=5
23
+package.numTargets=6
24 24
 package.showExtends=true
25 25
 package.showUses=true
26 26
 project.charset=UTF-8
@@ -30,37 +30,45 @@ readme.width=47
30 30
 readme.x=10
31 31
 readme.y=10
32 32
 target1.height=50
33
-target1.name=Address
33
+target1.name=StudentTest
34 34
 target1.showInterface=false
35
-target1.type=ClassTarget
35
+target1.type=UnitTestTargetJunit4
36 36
 target1.width=80
37
-target1.x=300
38
-target1.y=20
37
+target1.x=290
38
+target1.y=190
39 39
 target2.height=50
40
-target2.name=Staff
40
+target2.name=Address
41 41
 target2.showInterface=false
42 42
 target2.type=ClassTarget
43 43
 target2.width=80
44
-target2.x=130
45
-target2.y=220
44
+target2.x=300
45
+target2.y=20
46 46
 target3.height=50
47
-target3.name=Database
47
+target3.name=Staff
48 48
 target3.showInterface=false
49 49
 target3.type=ClassTarget
50 50
 target3.width=80
51
-target3.x=90
52
-target3.y=40
51
+target3.x=130
52
+target3.y=220
53 53
 target4.height=50
54
-target4.name=Student
54
+target4.name=Database
55 55
 target4.showInterface=false
56 56
 target4.type=ClassTarget
57 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 61
 target5.height=50
61
-target5.name=Person
62
+target5.name=Student
62 63
 target5.showInterface=false
63
-target5.type=AbstractTarget
64
+target5.type=ClassTarget
64 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