@Test public void test() { final Model mo = new DefaultModel(); final UnstatableProblemException ex = new UnstatableProblemException(mo, 7); Assert.assertEquals(ex.getModel(), mo); Assert.assertEquals(ex.timeout(), 7); Assert.assertTrue(ex.getMessage().contains("Unable to state about the problem feasibility within the allotted 7 seconds")); }
public int timeout() { return duration; }
UnstatableProblemException extends SchedulerException { public int timeout() { return duration; } }
UnstatableProblemException extends SchedulerException { public int timeout() { return duration; } UnstatableProblemException(Model m, int to); }
UnstatableProblemException extends SchedulerException { public int timeout() { return duration; } UnstatableProblemException(Model m, int to); int timeout(); }
UnstatableProblemException extends SchedulerException { public int timeout() { return duration; } UnstatableProblemException(Model m, int to); int timeout();  }