From 1455364df2de79f3968e483776a84d8f81ca38b5 Mon Sep 17 00:00:00 2001 From: jdramaix Date: Tue, 7 Jan 2014 11:46:41 +0100 Subject: [PATCH] fix json test --- .../gwt/query/client/GQueryAjaxTestGwt.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryAjaxTestGwt.java b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryAjaxTestGwt.java index 695e1d01..65bd8c56 100644 --- a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryAjaxTestGwt.java +++ b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryAjaxTestGwt.java @@ -16,12 +16,6 @@ package com.google.gwt.query.client; -import static com.google.gwt.query.client.GQuery.$; - -import java.util.Arrays; -import java.util.Date; -import java.util.List; - import com.google.gwt.core.client.GWT; import com.google.gwt.dom.client.Element; import com.google.gwt.junit.DoNotRunWith; @@ -35,6 +29,12 @@ import com.google.gwt.query.client.plugins.ajax.Ajax.Settings; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.RootPanel; +import java.util.Arrays; +import java.util.Date; +import java.util.List; + +import static com.google.gwt.query.client.GQuery.$; + /** * Test class for testing ajax stuff. */ @@ -131,7 +131,8 @@ public class GQueryAjaxTestGwt extends GWTTestCase { c.setItems(Arrays.asList(items)); assertEquals(2000l, c.getItems().get(0).getDate().getTime()); assertEquals(3000l, c.getItems().get(1).getDate().getTime()); - String s = "{'M':0,'a':1,'b':{'a':2,'b':{'a':3}},'u':'url','d':1234,'t':['foo','bar'],'z':false,'y':'y','items':[{'date':2000},{'date':3000}]"; + String s = "{'M':0,'a':1,'b':{'a':2,'b':{'a':3}},'u':'url','d':1234,'t':['foo','bar']," + + "'z':false,'y':'y','items':[{'date':2000},{'date':3000}]}"; assertEquals(s, c.toString().replaceAll("\"", "'")); } -- 2.39.5