Simulation implements Runnable, TaskListener, Cancellable { public SimulationResult getResult() { return result; } Simulation(SupplyChain supplyChain, int testCaseCount, String id); boolean isDone(); double getProgress(); SimulationResult getResult(); ProgressContributor getProgressContributor(); @Override void run(); @Override void taskFinished(org.openide.util.Task task); @Override boolean cancel();  }
@Test public void testGetResult() { SimulationResult result = simulation.getResult(); Assert.assertEquals(null, result.getTotalCosts().getMax()); Assert.assertEquals(null, result.getTotalDelays().getMax()); Assert.assertEquals(null, result.getTotalExtraCosts().getMax()); Assert.assertEquals(null, result.getTotalLeadTimes().getMax()); }