Skip to content

Commit a6cd02a

Browse files
author
Dennis Labordus
committed
Fixed sonar issue.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent d697432 commit a6cd02a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/test/java/org/lfenergy/compas/scl/data/rest/v1/AbstractServerEndpointAsReaderTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ protected void testWhenForbiddenToExecute(URI uri) {
2929
var container = ContainerProvider.getWebSocketContainer();
3030
var exception = assertThrows(InterruptedIOException.class, () -> container.connectToServer(Client.class, uri));
3131

32-
assertEquals(exception.getSuppressed().length, 1);
33-
assertEquals(exception.getSuppressed()[0].getClass(), ExecutionException.class);
34-
assertEquals((exception.getSuppressed()[0]).getCause().getClass(), WebSocketClientHandshakeException.class);
32+
assertEquals(1, exception.getSuppressed().length);
33+
assertEquals(ExecutionException.class, exception.getSuppressed()[0].getClass());
34+
assertEquals(WebSocketClientHandshakeException.class, (exception.getSuppressed()[0]).getCause().getClass());
3535
var wschExp = (WebSocketClientHandshakeException) (exception.getSuppressed()[0]).getCause();
36-
assertEquals(wschExp.response().status(), HttpResponseStatus.FORBIDDEN);
36+
assertEquals(HttpResponseStatus.FORBIDDEN, wschExp.response().status());
3737
}
3838

3939
@ClientEndpoint()

0 commit comments

Comments
 (0)