void () { ProgressIndicatorBase ui = new ProgressIndicatorBase(); ProgressIndicatorBase indicator = new ProgressIndicatorBase(); indicator.setIndeterminate(false); indicator.setFraction(0.3141519); indicator.setText("0.3141519"); indicator.setText2("2.3141519"); indicator.addStateDelegate(new RelayUiToDelegateIndicator(ui)); //make sure state is replicated correctly assertFalse(ui.isIndeterminate()); assertEquals(0.3141519, ui.getFraction()); assertEquals("0.3141519", ui.getText()); assertEquals("2.3141519", ui.getText2()); }