summaryrefslogtreecommitdiffstats
path: root/tests/client-side/com
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-06-05 11:21:20 +0300
committerLeif Åstrand <leif@vaadin.com>2012-06-06 13:33:48 +0300
commit7468c8261d186fbfb35586571c3a0728d31116e5 (patch)
tree082d5e66ea90e202cd76365ec493f60e49178c61 /tests/client-side/com
parent3702e37192c36203b74cb2694ba90a62266be079 (diff)
downloadvaadin-framework-7468c8261d186fbfb35586571c3a0728d31116e5.tar.gz
vaadin-framework-7468c8261d186fbfb35586571c3a0728d31116e5.zip
Don't send type info from server to client (#8879)
Diffstat (limited to 'tests/client-side/com')
-rw-r--r--tests/client-side/com/vaadin/terminal/gwt/server/JSONSerializerTest.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/client-side/com/vaadin/terminal/gwt/server/JSONSerializerTest.java b/tests/client-side/com/vaadin/terminal/gwt/server/JSONSerializerTest.java
index 926f026b40..fefc2d927c 100644
--- a/tests/client-side/com/vaadin/terminal/gwt/server/JSONSerializerTest.java
+++ b/tests/client-side/com/vaadin/terminal/gwt/server/JSONSerializerTest.java
@@ -13,7 +13,6 @@ import java.util.Map;
import junit.framework.TestCase;
-import com.vaadin.external.json.JSONArray;
import com.vaadin.terminal.gwt.client.communication.JsonDecoder;
import com.vaadin.terminal.gwt.client.communication.JsonEncoder;
import com.vaadin.terminal.gwt.client.ui.splitpanel.AbstractSplitPanelState;
@@ -43,8 +42,8 @@ public class JSONSerializerTest extends TestCase {
stringToStateMap.put("string - state 1", s);
stringToStateMap.put("String - state 2", s2);
- JSONArray encodedMap = JsonCodec.encode(stringToStateMap, null,
- mapType, null);
+ Object encodedMap = JsonCodec.encode(stringToStateMap, null, mapType,
+ null);
ensureDecodedCorrectly(stringToStateMap, encodedMap, mapType);
}
@@ -60,13 +59,13 @@ public class JSONSerializerTest extends TestCase {
stateToStringMap.put(s, "string - state 1");
stateToStringMap.put(s2, "String - state 2");
- JSONArray encodedMap = JsonCodec.encode(stateToStringMap, null,
- mapType, null);
+ Object encodedMap = JsonCodec.encode(stateToStringMap, null, mapType,
+ null);
ensureDecodedCorrectly(stateToStringMap, encodedMap, mapType);
}
- private void ensureDecodedCorrectly(Object original, JSONArray encoded,
+ private void ensureDecodedCorrectly(Object original, Object encoded,
Type type) throws Exception {
Object serverSideDecoded = JsonCodec.decodeInternalOrCustomType(type,
encoded, null);