Search in sources :

Example 1 with SomeAnnotations

use of com.serotonin.json.junit.vo.SomeAnnotations in project ma-core-public by infiniteautomation.

the class AnnotationsTest method testSample.

public void testSample() throws Exception {
    StringWriter out = new StringWriter();
    JsonWriter writer = new JsonWriter(out);
    writer.writeObject(new SomeAnnotations());
    String json = out.toString();
    assertEquals(json, "{\"id\":0}");
}
Also used : StringWriter(java.io.StringWriter) SomeAnnotations(com.serotonin.json.junit.vo.SomeAnnotations) JsonWriter(com.serotonin.json.JsonWriter)

Aggregations

JsonWriter (com.serotonin.json.JsonWriter)1 SomeAnnotations (com.serotonin.json.junit.vo.SomeAnnotations)1 StringWriter (java.io.StringWriter)1