MCMCResultsAvailableModel extends AbstractValueModel implements MCMCResultsListener { public Boolean getValue() { return d_val; } MCMCResultsAvailableModel(MCMCResults results); Boolean getValue(); void setValue(Object newValue); void resultsEvent(MCMCResultsEvent event);  }
@Test public void testInitalisation() { FakeResults res = new FakeResults(3, 50, 2, false); assertEquals(false, new MCMCResultsAvailableModel(res).getValue()); res.makeResultsAvailable(); assertEquals(true, new MCMCResultsAvailableModel(res).getValue()); }
@Test public void testDynamicValue() { FakeResults res = new FakeResults(3, 50, 2, false); MCMCResultsAvailableModel model = new MCMCResultsAvailableModel(res); res.makeResultsAvailable(); assertEquals(true, model.getValue()); res.clear(); assertEquals(false, model.getValue()); }