-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestAcIsWorking.java
More file actions
55 lines (43 loc) · 1.7 KB
/
TestAcIsWorking.java
File metadata and controls
55 lines (43 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.assertFalse;
public class TestAcIsWorking{
@Test
public void testThatAcIsSwitchedOn(){
Acisworking switchedOn = new Acisworking();
boolean isSwitchedOn = switchedOn.acIsTurnedOn();
assertTrue(isSwitchedOn);
}
@Test
public void testThatAcIsSwitchedOff(){
Acisworking switchedOff = new Acisworking();
boolean isSwitchedOff = switchedOff.acIsTurnedOff();
assertTrue(isSwitchedOff);
}
@Test
public void testAcWhenTemperatureIsIncreased(){
Acisworking temperatureIncreased = new Acisworking();
int tempincreased = temperatureIncreased.acTemperatureIncreased();
assertEquals(17, tempincreased);
}
@Test
public void testAcWhenTemperatureIsDecreased(){
Acisworking temperatureDecreased = new Acisworking();
int tempDecreased = temperatureDecreased.acTemperatureDecreased();
assertEquals(29, tempDecreased);
}
@Test
public void testAcWhenTemperatureIsIncreasedBy30(){
Acisworking tempIncreasedBeyond30 = new Acisworking();
int tempIncreased = tempIncreasedBeyond30.acTemperatureIncreased();
assertEquals(30, tempIncreased);
}
// @Test
// public void testAcWhenTemperatureIsIncreasedBy30(){
// Acisworking tempIncreasedBeyond30 = new Acisworking();
// int tempdecreased = temperatureIncreased.acTemperatureIncreased();
//
// assertEquals(30, tempIncreasedBeyond30);
// }
}