Skip to content

Commit

Permalink
fix: remove typo from SalaryCalculatorTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcristal committed Apr 2, 2024
1 parent 9a8d93c commit 4608a8e
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@

import static org.assertj.core.api.Assertions.*;


public class SalaryCalculatorTest {

public SalaryCalculator calculator;

@BeforeEach
Expand All @@ -18,7 +17,7 @@ public void setUp() {
@Test
@Tag("task:1")
@DisplayName("The salaryMultiplier method returns 1.0 when daysSkipped is below the threshold")
public void msalaryMultiplierWhenDaysSkippedIs4() {
public void salaryMultiplierWhenDaysSkippedIs4() {
assertThat(calculator.salaryMultiplier(4)).isEqualTo(1.0);
}

Expand Down Expand Up @@ -77,7 +76,7 @@ public void regularSalary() {
public void skippedAboveThreshold() {
assertThat(calculator.finalSalary(7, 0)).isEqualTo(850.0);
}

@Test
@Tag("task:3")
@DisplayName("The finalSalary method returns the correct result when daysSkipped and productsSold below threshold")
Expand All @@ -91,5 +90,5 @@ public void skippedBelowThresholdAndSoldBelowThreshold() {
public void salaryRespectMaximum() {
assertThat(calculator.finalSalary(0, 77)).isEqualTo(2000.0);
}

}

0 comments on commit 4608a8e

Please sign in to comment.