fix: fixed UserManagerTest

This commit is contained in:
Yannik Bretschneider 2021-06-05 23:48:05 +02:00
parent 4dec57d483
commit 4e2e0bd622

View File

@ -24,7 +24,7 @@ class UserManagerTest {
void beforeEach() { void beforeEach() {
connection = mock(WebSocket.class); connection = mock(WebSocket.class);
// when(connection.hashCode()).thenReturn(1); // just for testing, of course // when(connection.hashCode()).thenReturn(1); // just for testing, of course
manager = spy(new UserManager(new JSON(null))); // FIXME: This shouldn't be null, of course manager = spy(new UserManager()); // FIXME: This shouldn't be null, of course
handshake = mock(ClientHandshake.class); handshake = mock(ClientHandshake.class);
when(handshake.getResourceDescriptor()).thenReturn("/someDescriptor"); when(handshake.getResourceDescriptor()).thenReturn("/someDescriptor");