From df40b75d49b257f982d7378240a1f288d1dfa954 Mon Sep 17 00:00:00 2001 From: caalador Date: Wed, 18 Dec 2024 17:45:51 +0200 Subject: [PATCH] chore: fix test typos (#20744) --- .../src/test-gwt/java/com/vaadin/client/GwtSuite.java | 4 ++-- ...nTest.java => GwtAtmospherePushConnectionTest.java} | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) rename flow-client/src/test-gwt/java/com/vaadin/client/communication/{GwtAtmoshperePushConnectionTest.java => GwtAtmospherePushConnectionTest.java} (93%) diff --git a/flow-client/src/test-gwt/java/com/vaadin/client/GwtSuite.java b/flow-client/src/test-gwt/java/com/vaadin/client/GwtSuite.java index 8315f20c01f..bd849287cb5 100644 --- a/flow-client/src/test-gwt/java/com/vaadin/client/GwtSuite.java +++ b/flow-client/src/test-gwt/java/com/vaadin/client/GwtSuite.java @@ -5,7 +5,7 @@ import com.google.gwt.junit.tools.GWTTestSuite; -import com.vaadin.client.communication.GwtAtmoshperePushConnectionTest; +import com.vaadin.client.communication.GwtAtmospherePushConnectionTest; import com.vaadin.client.communication.GwtDefaultConnectionStateHandlerTest; import com.vaadin.client.flow.GwtBasicElementBinderTest; import com.vaadin.client.flow.GwtErrotHandlerTest; @@ -52,7 +52,7 @@ public static Test suite() { suite.addTestSuite(GwtMultipleBindingTest.class); suite.addTestSuite(GwtDefaultConnectionStateHandlerTest.class); suite.addTestSuite(GwtErrotHandlerTest.class); - suite.addTestSuite(GwtAtmoshperePushConnectionTest.class); + suite.addTestSuite(GwtAtmospherePushConnectionTest.class); return suite; } } diff --git a/flow-client/src/test-gwt/java/com/vaadin/client/communication/GwtAtmoshperePushConnectionTest.java b/flow-client/src/test-gwt/java/com/vaadin/client/communication/GwtAtmospherePushConnectionTest.java similarity index 93% rename from flow-client/src/test-gwt/java/com/vaadin/client/communication/GwtAtmoshperePushConnectionTest.java rename to flow-client/src/test-gwt/java/com/vaadin/client/communication/GwtAtmospherePushConnectionTest.java index 389d6bf2857..36af276d755 100644 --- a/flow-client/src/test-gwt/java/com/vaadin/client/communication/GwtAtmoshperePushConnectionTest.java +++ b/flow-client/src/test-gwt/java/com/vaadin/client/communication/GwtAtmospherePushConnectionTest.java @@ -34,7 +34,7 @@ * @author Vaadin Ltd * */ -public class GwtAtmoshperePushConnectionTest extends ClientEngineTestBase { +public class GwtAtmospherePushConnectionTest extends ClientEngineTestBase { private Registry registry; @@ -67,7 +67,7 @@ public JsMap getParameters() { } - public void testDicsonnect_disconnectUrlIsSameAsInConnect() { + public void testDisconnect_disconnectUrlIsSameAsInConnect() { setUpAtmosphere(); registry.getApplicationConfiguration().setServiceUrl("context://foo"); @@ -82,8 +82,8 @@ public void testDicsonnect_disconnectUrlIsSameAsInConnect() { connection.onConnect(response); connection.disconnect(() -> { }); - assertTrue(getUnsubscriveUri().startsWith("bar/")); - assertEquals(pushUri, getUnsubscriveUri()); + assertTrue(getUnsubscribeUri().startsWith("bar/")); + assertEquals(pushUri, getUnsubscribeUri()); } private native void setUpAtmosphere()/*-{ @@ -101,7 +101,7 @@ private native String getPushUri()/*-{ return $wnd.subscribeUrl ; }-*/; - private native String getUnsubscriveUri()/*-{ + private native String getUnsubscribeUri()/*-{ return $wnd.unsubscribeUri ; }-*/;