trying to fix nullpointerexception

This commit is contained in:
Tommaso Rodolfo Masera 2020-05-22 14:35:36 +02:00
parent 64007d1b5c
commit b1343bbd40

View file

@ -8,7 +8,6 @@ import ch.usi.inf.sa4.sanmarinoes.smarthut.models.EagerUserRepository;
import ch.usi.inf.sa4.sanmarinoes.smarthut.models.User;
import java.security.Principal;
import java.util.List;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@ -33,11 +32,6 @@ public class GuestControllerTests {
user.setId(12L);
}
@BeforeEach
public void setup() {
guestController = new GuestController();
}
@DisplayName("Check that the list is empty when we have no hosts/guests")
@Test
public void findAllEmptyTest() {