Assert.assertFalse(ia.isImageWithThisPathExist(album2, path + path));
}
@Test
public void areAllUserCommentsFound() throws Exception {
User user = helper.getAllUsers(em).get(1);
List<Comment> userComments = ia.findAllUserComments(user);
Assert.assertEquals(4, userComments.size());
for (Comment c : helper.getAllComments(em)) {
if (c.getAuthor().getId() == user.getId()) {
Assert.assertTrue(userComments.contains(c));
}
}
}