aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2015-11-04 15:18:41 +0300
committerGravatar Vitaly Takmazov2015-11-04 15:18:41 +0300
commit63b14e7818a20d598e4634a0ee686376d7f687b2 (patch)
tree764d2924e34440e77945b1edd8501ee0aa6c1181 /src/test
parent9325971f2f6e2bf83e3d4d69bae3f8e63226bc63 (diff)
drop gson, refactoring
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/com/juick/tests/JsonTests.java12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/java/com/juick/tests/JsonTests.java b/src/test/java/com/juick/tests/JsonTests.java
index 9a42dea5..f44fac20 100644
--- a/src/test/java/com/juick/tests/JsonTests.java
+++ b/src/test/java/com/juick/tests/JsonTests.java
@@ -1,23 +1,11 @@
package com.juick.tests;
-import com.google.gson.Gson;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
-import com.juick.Message;
-
public class JsonTests {
@Test
public void CompareSerializers() {
- Message msg = new Message();
- msg.ReplyTo = 1;
- msg.MID = 234566;
- Gson gson = new Gson();
- String gsonResult = gson.toJson(msg);
- String ugnichResult = com.juick.json.Message.toJSON(msg).toString();
- System.out.println(gsonResult);
- System.out.println(ugnichResult);
- assertEquals("our result must equal to ugnich", ugnichResult, gsonResult);
}
} \ No newline at end of file