@Test public void testRenderState() throws IOException { progressBar.setState(SWT.ERROR); lca.renderChanges(progressBar); Message message = Fixture.getProtocolMessage(); assertEquals("error", message.findSetProperty(progressBar, "state").asString()); }
@Test public void testRenderStateUnchanged() throws IOException { Fixture.markInitialized(display); Fixture.markInitialized(progressBar); progressBar.setState(SWT.ERROR); Fixture.preserveWidgets(); lca.renderChanges(progressBar); Message message = Fixture.getProtocolMessage(); assertNull(message.findSetOperation(progressBar, "state")); }