Advertisement
spacerose

Untitled

Sep 27th, 2021
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. package com.example.demo;
  2.  
  3. import org.junit.Assert;
  4. import org.junit.jupiter.api.Test;
  5.  
  6. class GroupServiceTest {
  7. Group newGroup = new Group("ikbo10");
  8.  
  9. GroupService gs = new GroupService();
  10.  
  11. @Test
  12. void save() {
  13.  
  14. Assert.assertTrue(gs.save(newGroup));
  15. }
  16.  
  17. @Test
  18. void find() {
  19. Assert.assertEquals((new Group("Not found")).getGroupName(), gs.find("test").getGroupName());
  20. }
  21.  
  22. @Test
  23. void remove() {
  24. Assert.assertEquals((new Group("Not found")).getGroupName(), gs.remove("test").getGroupName());
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement