File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
exercises/concept/salary-calculator/src/test/java Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 5
5
6
6
import static org .assertj .core .api .Assertions .*;
7
7
8
-
9
8
public class SalaryCalculatorTest {
10
-
9
+
11
10
public SalaryCalculator calculator ;
12
11
13
12
@ BeforeEach
@@ -18,7 +17,7 @@ public void setUp() {
18
17
@ Test
19
18
@ Tag ("task:1" )
20
19
@ DisplayName ("The salaryMultiplier method returns 1.0 when daysSkipped is below the threshold" )
21
- public void msalaryMultiplierWhenDaysSkippedIs4 () {
20
+ public void salaryMultiplierWhenDaysSkippedIs4 () {
22
21
assertThat (calculator .salaryMultiplier (4 )).isEqualTo (1.0 );
23
22
}
24
23
@@ -77,7 +76,7 @@ public void regularSalary() {
77
76
public void skippedAboveThreshold () {
78
77
assertThat (calculator .finalSalary (7 , 0 )).isEqualTo (850.0 );
79
78
}
80
-
79
+
81
80
@ Test
82
81
@ Tag ("task:3" )
83
82
@ DisplayName ("The finalSalary method returns the correct result when daysSkipped and productsSold below threshold" )
@@ -91,5 +90,5 @@ public void skippedBelowThresholdAndSoldBelowThreshold() {
91
90
public void salaryRespectMaximum () {
92
91
assertThat (calculator .finalSalary (0 , 77 )).isEqualTo (2000.0 );
93
92
}
94
-
93
+
95
94
}
You can’t perform that action at this time.
0 commit comments