diff options
author | Artur Signell <artur@vaadin.com> | 2015-08-31 15:21:10 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2015-09-02 16:09:16 +0300 |
commit | 24ac02a52362b957c1483026691394e89ec4fd78 (patch) | |
tree | 3160628816809ca4be932c806daa2f36ef19ace1 /client/tests/src/com/vaadin | |
parent | 08afe3a6bdec563770fe197034646cdbbfa97600 (diff) | |
download | vaadin-framework-24ac02a52362b957c1483026691394e89ec4fd78.tar.gz vaadin-framework-24ac02a52362b957c1483026691394e89ec4fd78.zip |
API refactor based on review (#11733)
ServerMessageHandler -> MessageHandler
ServerCommunicationHandler -> MessageSender
State -> ApplicationState
CommunicationProblemHandler -> ConnectionStateHandler
CommunicationProblemEvent -> XhrConnectionError
Change-Id: I2eccfea9cf6a275eba02ac605b6a172e496bd004
Diffstat (limited to 'client/tests/src/com/vaadin')
-rw-r--r-- | client/tests/src/com/vaadin/client/communication/ServerMessageHandlerTest.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/client/tests/src/com/vaadin/client/communication/ServerMessageHandlerTest.java b/client/tests/src/com/vaadin/client/communication/ServerMessageHandlerTest.java index 4b788d06cc..c2752f1953 100644 --- a/client/tests/src/com/vaadin/client/communication/ServerMessageHandlerTest.java +++ b/client/tests/src/com/vaadin/client/communication/ServerMessageHandlerTest.java @@ -28,29 +28,27 @@ public class ServerMessageHandlerTest { @Test public void unwrapValidJson() { String payload = "{'foo': 'bar'}"; - Assert.assertEquals( - payload, - ServerMessageHandler.stripJSONWrapping("for(;;);[" + payload - + "]")); + Assert.assertEquals(payload, + MessageHandler.stripJSONWrapping("for(;;);[" + payload + "]")); } @Test public void unwrapUnwrappedJson() { String payload = "{'foo': 'bar'}"; - Assert.assertNull(ServerMessageHandler.stripJSONWrapping(payload)); + Assert.assertNull(MessageHandler.stripJSONWrapping(payload)); } @Test public void unwrapNull() { - Assert.assertNull(ServerMessageHandler.stripJSONWrapping(null)); + Assert.assertNull(MessageHandler.stripJSONWrapping(null)); } @Test public void unwrapEmpty() { - Assert.assertNull(ServerMessageHandler.stripJSONWrapping("")); + Assert.assertNull(MessageHandler.stripJSONWrapping("")); } } |