access modifiers and constructors fix

This commit is contained in:
Filip Izydorczyk
2020-09-25 16:43:24 +02:00
parent ce4a5942d5
commit 44bcc24110
12 changed files with 25 additions and 38 deletions

View File

@ -21,16 +21,13 @@ public class GroupServiceTest {
@Test
public void createAndDeleteGroup() {
Groups group;
int startAmmount = this.groupService.getGroupsAmmount();
//Create group
group = new Groups();
Groups group = new Groups();
group.setRoom("A1");
groupService.save(group);
assertTrue(this.groupService.getGroupsAmmount() > startAmmount);
// Delete course
groupService.delete(group);
assertTrue(this.groupService.getGroupsAmmount() == startAmmount);
}