private Like createLike() { Like like = new Like(); like.setProviderUserId(providerUserId); like.setDocumentId(documentId); like.setIsLike(true); return like; }
@Test public void getByProviderUserId() { // Given Like likeTmp = createLike(); likeDao.save(likeTmp); // When Like like = likeDao.getByProviderUserId(likeTmp.getProviderUserId()).get(0); // Then assertThat(like.getProviderUserId(), is(likeTmp.getProviderUserId())); }