We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7fc8851 + 4766703 commit 0d893a4Copy full SHA for 0d893a4
src/test/java/com/jsoniter/TestRecord.java
@@ -1,5 +1,7 @@
1
package com.jsoniter;
2
3
+import com.jsoniter.output.JsonStream;
4
+import junit.framework.Test;
5
import junit.framework.TestCase;
6
7
import java.io.IOException;
@@ -15,4 +17,8 @@ public void test_record_error() throws IOException {
15
17
JsonIterator iter = JsonIterator.parse("{ 'field1' : 1".replace('\'', '"'));
16
18
iter.read(TestRecord1.class);
19
}
20
+
21
+ public void test_record_serialize(){
22
+ assertEquals("{\"field1\":1}",JsonStream.serialize(new TestRecord1(1)));
23
+ }
24
0 commit comments