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