use of com.twosigma.beakerx.jvm.object.GridOutputContainerLayoutManager in project beakerx by twosigma.
the class GridOutputContainerLayoutManagerDeserializerTest method deserialize_resultObjectHasColumns.
@Test
public void deserialize_resultObjectHasColumns() throws Exception {
// given
ObjectMapper mapper = new ObjectMapper();
JsonNode actualObj = mapper.readTree(json);
GridOutputContainerLayoutManagerDeserializer deserializer = new GridOutputContainerLayoutManagerDeserializer(new BasicObjectSerializer());
// when
GridOutputContainerLayoutManager layoutManager = (GridOutputContainerLayoutManager) deserializer.deserialize(actualObj, mapper);
// then
Assertions.assertThat(layoutManager).isNotNull();
Assertions.assertThat(layoutManager.getColumns()).isEqualTo(columns);
}
use of com.twosigma.beakerx.jvm.object.GridOutputContainerLayoutManager in project beakerx by twosigma.
the class GridOutputContainerLayoutManagerSerializerTest method setUp.
@Before
public void setUp() throws Exception {
KernelManager.register(new KernelTest());
layoutManager = new GridOutputContainerLayoutManager(5) {
};
}
Aggregations