use of io.annot8.common.serialization.TestNested.Descriptor in project annot8 by annot8.
the class Annot8ComponentDescriptorSerializerTest method testNested.
@Test
public void testNested() {
JsonbConfig config = new JsonbConfig().withSerializers(new Annot8ComponentDescriptorSerializer());
Jsonb jb = JsonbBuilder.create(config);
Descriptor desc = new Descriptor();
String json = jb.toJson(desc);
assertEquals("{\"io.annot8.common.serialization.TestNested$Descriptor\":{\"name\":\"\",\"settings\":{}}}", json);
}
Aggregations