delete comment

This commit is contained in:
aisensiy
2017-08-15 18:16:06 +08:00
parent f31bcbc6e0
commit 001d4e1eea
9 changed files with 85 additions and 14 deletions

View File

@@ -26,7 +26,7 @@ public class MyBatisCommentRepositoryTest {
Comment comment = new Comment("content", "123", "456");
commentRepository.save(comment);
Optional<Comment> optional = commentRepository.findById(comment.getId());
Optional<Comment> optional = commentRepository.findById("456", comment.getId());
assertThat(optional.isPresent(), is(true));
assertThat(optional.get(), is(comment));
}