Browse Source

FirstSaturday

Soujanya Buragapu 6 years ago
parent
commit
f14399fb89
3 changed files with 11 additions and 11 deletions
  1. 1
    1
      WriteIFs.java
  2. 6
    6
      WriteIFsTest.java
  3. 4
    4
      package.bluej

+ 1
- 1
WriteIFs.java View File

@@ -75,7 +75,7 @@ public void putValueOfoo2(int val)
75 75
         // AND 
76 76
         // “insideTemp()” is less than 62, 
77 77
         // calls “startAFire(fireplace1)”
78
-        if (outsideTemp()<50 && insideTemp()<62)
78
+        if (outsideTemp()<90 && insideTemp()<66)
79 79
         {
80 80
             startAFire(fireplace1);
81 81
         }

+ 6
- 6
WriteIFsTest.java View File

@@ -82,29 +82,29 @@ public class WriteIFsTest
82 82
     public void TestFireControl()
83 83
     {
84 84
         WriteIFs writeIFs1 = new WriteIFs();
85
-        //Object oo = new Object();
85
+        Object oo = new Object();
86 86
         writeIFs1.putValueOftts(1);
87
-        writeIFs1.fireplaceControl();
87
+        writeIFs1.fireplaceControl(oo);
88 88
         assertEquals(213, writeIFs1.getValueOftts());
89 89
     }
90 90
     @Test
91 91
     public void TestFireControl2()
92 92
     {
93 93
         WriteIFs writeIFs1 = new WriteIFs();
94
-        //Object oo = new Object();
94
+        Object oo = new Object();
95 95
         writeIFs1.putValueOfoo1(65);
96 96
         writeIFs1.putValueOftts(1);
97
-        writeIFs1.fireplaceControl();
97
+        writeIFs1.fireplaceControl(oo);
98 98
         assertEquals(213, writeIFs1.getValueOftts());
99 99
     }
100 100
     @Test
101 101
     public void TestFireControl3()
102 102
     {
103 103
         WriteIFs writeIFs1 = new WriteIFs();
104
-        //Object oo = new Object();
104
+        Object oo = new Object();
105 105
         writeIFs1.putValueOfoo2(80);
106 106
         writeIFs1.putValueOftts(1);
107
-        writeIFs1.fireplaceControl();
107
+        writeIFs1.fireplaceControl(oo);
108 108
         assertEquals(213, writeIFs1.getValueOftts());
109 109
     }
110 110
 

+ 4
- 4
package.bluej View File

@@ -5,10 +5,10 @@ dependency1.type=UsesDependency
5 5
 dependency2.from=WriteIFsTest
6 6
 dependency2.to=WriteIFs
7 7
 dependency2.type=UsesDependency
8
-editor.fx.0.height=0
9
-editor.fx.0.width=0
10
-editor.fx.0.x=0
11
-editor.fx.0.y=0
8
+editor.fx.0.height=716
9
+editor.fx.0.width=876
10
+editor.fx.0.x=67
11
+editor.fx.0.y=30
12 12
 objectbench.height=83
13 13
 objectbench.width=444
14 14
 package.divider.horizontal=0.6005326231691078