Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.demo;
- import org.junit.Assert;
- import org.junit.jupiter.api.Test;
- class GroupServiceTest {
- Group newGroup = new Group("ikbo10");
- GroupService gs = new GroupService();
- @Test
- void save() {
- Assert.assertTrue(gs.save(newGroup));
- }
- @Test
- void find() {
- Assert.assertEquals((new Group("Not found")).getGroupName(), gs.find("test").getGroupName());
- }
- @Test
- void remove() {
- Assert.assertEquals((new Group("Not found")).getGroupName(), gs.remove("test").getGroupName());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement