Guest User

Untitled

a guest
Aug 14th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1.  
  2. @Test
  3. @Transactional
  4. void getExistingUserPosts() {
  5. this.user = userRepository.findByUsername("James").get();
  6. posts = user.getPosts();
  7. ResponseEntity response = postService.findAllByUser(this.user.getUsername());
  8. Assertions.assertEquals(posts.toString(), Objects.requireNonNull(response.getBody()).toString());
  9. }
Advertisement
Add Comment
Please, Sign In to add comment