File tree Expand file tree Collapse file tree
exercises/concept/salary-calculator/src/test/java Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66import static org .assertj .core .api .Assertions .*;
77
8-
98public class SalaryCalculatorTest {
10-
9+
1110 public SalaryCalculator calculator ;
1211
1312 @ BeforeEach
@@ -18,7 +17,7 @@ public void setUp() {
1817 @ Test
1918 @ Tag ("task:1" )
2019 @ DisplayName ("The salaryMultiplier method returns 1.0 when daysSkipped is below the threshold" )
21- public void msalaryMultiplierWhenDaysSkippedIs4 () {
20+ public void salaryMultiplierWhenDaysSkippedIs4 () {
2221 assertThat (calculator .salaryMultiplier (4 )).isEqualTo (1.0 );
2322 }
2423
@@ -77,7 +76,7 @@ public void regularSalary() {
7776 public void skippedAboveThreshold () {
7877 assertThat (calculator .finalSalary (7 , 0 )).isEqualTo (850.0 );
7978 }
80-
79+
8180 @ Test
8281 @ Tag ("task:3" )
8382 @ DisplayName ("The finalSalary method returns the correct result when daysSkipped and productsSold below threshold" )
@@ -91,5 +90,5 @@ public void skippedBelowThresholdAndSoldBelowThreshold() {
9190 public void salaryRespectMaximum () {
9291 assertThat (calculator .finalSalary (0 , 77 )).isEqualTo (2000.0 );
9392 }
94-
93+
9594}
You can’t perform that action at this time.
0 commit comments