use of com.twosigma.beakerx.jvm.object.OutputContainerCell in project beakerx by twosigma.
the class OutputContainerCellDeserializerTest method deserialize_resultObjectHasLabels.
@Test
public void deserialize_resultObjectHasLabels() throws Exception {
// given
ObjectMapper mapper = new ObjectMapper();
JsonNode actualObj = mapper.readTree(json);
OutputContainerCellDeserializer deserializer = new OutputContainerCellDeserializer(new BasicObjectSerializer());
// when
OutputContainerCell outputContainerCell = (OutputContainerCell) deserializer.deserialize(actualObj, mapper);
// then
Assertions.assertThat(outputContainerCell).isNotNull();
Assertions.assertThat(outputContainerCell.getLabels()).isNotEmpty();
}
use of com.twosigma.beakerx.jvm.object.OutputContainerCell in project beakerx by twosigma.
the class OutputContainerCellSerializerTest method setUp.
@Before
public void setUp() throws Exception {
KernelManager.register(new KernelTest());
outputContainerCell = new OutputContainerCell() {
};
}
Aggregations