use of com.enonic.xp.script.serializer.JsonMapGenerator in project xp by enonic.
the class PushNodesResultMapperTest method single_deleted.
@Test
public void single_deleted() throws Exception {
final PushNodesResult result = PushNodesResult.create().build();
final JsonMapGenerator jsonGenerator = new JsonMapGenerator();
new PushNodesResultMapper(result, NodeIds.from("a")).serialize(jsonGenerator);
assertJson("nodeResult/single_deleted.json", jsonGenerator);
}
Aggregations