Изменен тест на delete
This commit is contained in:
parent
a05eb93a91
commit
661a030dc2
@ -133,7 +133,8 @@ public class PostServiceTests {
|
||||
@Test
|
||||
@Order(3)
|
||||
void delete() {
|
||||
final int oldCount = postService.getAll().size();
|
||||
postService.delete(1);
|
||||
Assertions.assertEquals(2, postService.getAll().size());
|
||||
Assertions.assertEquals(oldCount - 1, postService.getAll().size());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user