use of com.hubspot.rosetta.beans.ListStoredAsJsonBeanIF.ListStoredAsJsonBean in project Rosetta by HubSpot.
the class StoredAsJsonTest method testSerializingListStoredAsJsonBean.
@Test
public void testSerializingListStoredAsJsonBean() {
ListStoredAsJsonBean bean = new ListStoredAsJsonBean(Arrays.asList(new PolymorphicBeanA()));
JsonNode node = Rosetta.getMapper().valueToTree(bean);
assertThat(node.get("beans")).isNotNull();
assertThat(node.get("beans").textValue()).contains("beanType");
}
Aggregations