Изменен тест на delete

This commit is contained in:
Никита Потапов 2024-04-01 18:14:01 +04:00
parent a05eb93a91
commit 661a030dc2

View File

@ -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());
}
}