Skip to content

Commit 668d7d2

Browse files
committed
fix: build failed
1 parent 0d35a8a commit 668d7d2

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

lesson_15/tdd/tdd_app/src/test/java/EmployeeManagerTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import static org.assertj.core.api.Assertions.assertThatThrownBy;
22
import static org.junit.jupiter.api.Assertions.assertEquals;
3-
import org.junit.jupiter.api.BeforeEach;
4-
import org.junit.jupiter.api.Test;
53

64
import com.codedifferently.lesson15.Employee;
75
import com.codedifferently.lesson15.EmployeeManager;
6+
import org.junit.jupiter.api.BeforeEach;
7+
import org.junit.jupiter.api.Test;
88

99
public class EmployeeManagerTest {
1010

@@ -61,10 +61,10 @@ public void testGetDetails() {
6161
assertEquals(employee.getDetails(), "Id 0 Name: Zion department Code Differently0.0 salary");
6262
}
6363

64-
@Test
65-
public void testRemoveEmployee(){
64+
@Test
65+
public void testRemoveEmployee() {
6666
// Setup
67-
var id=0;
67+
var id = 0;
6868

6969
// Execute
7070
employeeManager.addEmployee(employee);

lesson_15/tdd/tdd_app/src/test/java/com/codedifferently/lesson15/EmployeeTest.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.codedifferently.lesson15;
22

33
import static org.junit.jupiter.api.Assertions.assertEquals;
4+
45
import org.junit.jupiter.api.BeforeEach;
56
import org.junit.jupiter.api.Test;
67

@@ -51,15 +52,15 @@ public void testSetDepartment() {
5152
public void testGetDetails() {
5253
assertEquals(employee.getDetails(), "Id 0 Name: Zion department Code Differently0.0 salary");
5354
}
55+
5456
@Test
55-
public void testGetSalary() {
57+
public void testGetSalary() {
5658
employee.getSalary();
5759
assertEquals(employee.getSalary(), 0);
58-
}
60+
}
5961

60-
@Test
61-
public void testSetSalary() {
62+
@Test
63+
public void testSetSalary() {
6264
assertEquals(employee.getSalary(), 0);
6365
}
64-
6566
}

0 commit comments

Comments
 (0)