@Test public void testRenderInitialWidth() throws IOException { lca.render(column); TestMessage message = Fixture.getProtocolMessage(); assertEquals(10, message.findCreateProperty(column, "width").asInt()); }
@Test public void testRenderInitialHeaderWordWrap() throws IOException { lca.render(column); TestMessage message = Fixture.getProtocolMessage(); CreateOperation operation = message.findCreateOperation(column); assertTrue(operation.getProperties().names().indexOf("headerWordWrap") == -1); }
@Test public void testRenderCreateWithAligment() throws IOException { column = new GridColumn(grid, SWT.RIGHT); lca.render(column); TestMessage message = Fixture.getProtocolMessage(); CreateOperation operation = message.findCreateOperation(column); assertTrue(operation.getProperties().names().indexOf("style") == -1); assertEquals("right", message.findCreateProperty(column, "alignment").asString()); }