Skip to content

Commit

Permalink
test(entities): set all
Browse files Browse the repository at this point in the history
  • Loading branch information
Chamber6821 committed Apr 17, 2024
1 parent 1ebf266 commit 44cffed
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@ void getAll() {
assertEquals(obj.getId(), null);
assertEquals(obj.getName(), null);
}

@Test
void setAll() {
var obj = new Department();
obj.setId(null);
obj.setName(null);
}
}
12 changes: 12 additions & 0 deletions src/test/java/com/example/jonebook/entities/EmployeeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,16 @@ void getAll() {
assertEquals(obj.getDepartment(), null);
assertEquals(obj.getPosts(), null);
}

@Test
void setAll() {
var obj = new Employee();
obj.setId(null);
obj.setName(null);
obj.setEmail(null);
obj.setPhone(null);
obj.setInternalPhone(null);
obj.setDepartment(null);
obj.setPosts(null);
}
}
8 changes: 8 additions & 0 deletions src/test/java/com/example/jonebook/entities/WorkPostTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,12 @@ void getAll() {
assertEquals(obj.getName(), null);
assertEquals(obj.getEmployees(), null);
}

@Test
void setAll() {
var obj = new WorkPost();
obj.setId(null);
obj.setName(null);
obj.setEmployees(null);
}
}

0 comments on commit 44cffed

Please sign in to comment.