You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/09/09 13:19:25 UTC

[camel] 03/03: (chores) camel-atmosphere-websocket: assertion cleanups

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 6395ccdb8db226c65926ac44cc6c6693a2b3eafd
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Sep 9 11:29:47 2022 +0200

    (chores) camel-atmosphere-websocket: assertion cleanups
---
 .../atmosphere/websocket/WebsocketRouteWithInitParamTest.java        | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/components/camel-atmosphere-websocket/src/test/java/org/apache/camel/component/atmosphere/websocket/WebsocketRouteWithInitParamTest.java b/components/camel-atmosphere-websocket/src/test/java/org/apache/camel/component/atmosphere/websocket/WebsocketRouteWithInitParamTest.java
index 542ae804e9b..3b0a192b492 100644
--- a/components/camel-atmosphere-websocket/src/test/java/org/apache/camel/component/atmosphere/websocket/WebsocketRouteWithInitParamTest.java
+++ b/components/camel-atmosphere-websocket/src/test/java/org/apache/camel/component/atmosphere/websocket/WebsocketRouteWithInitParamTest.java
@@ -31,6 +31,7 @@ import org.junit.jupiter.api.Test;
 import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
 public class WebsocketRouteWithInitParamTest extends WebsocketCamelRouterWithInitParamTestSupport {
@@ -278,7 +279,7 @@ public class WebsocketRouteWithInitParamTest extends WebsocketCamelRouterWithIni
         Object eventType = exchange.getIn().getHeader(WebsocketConstants.EVENT_TYPE);
         Object msg = exchange.getIn().getBody();
 
-        assertEquals(null, msg);
+        assertNull(msg);
         assertNotNull(connectionKey);
 
         if (eventType instanceof Integer) {
@@ -293,7 +294,7 @@ public class WebsocketRouteWithInitParamTest extends WebsocketCamelRouterWithIni
         Object eventType = exchange.getIn().getHeader(WebsocketConstants.EVENT_TYPE);
         Object msg = exchange.getIn().getBody();
 
-        assertEquals(null, msg);
+        assertNull(msg);
         assertNotNull(connectionKey);
 
         if (eventType instanceof Integer && eventType.equals(WebsocketConstants.ONOPEN_EVENT_TYPE)) {