111112113114115116117118119120121
} @Test public void testFailureToStartBeforeGettingTimings() { StopWatch sw = new StopWatch(); try { sw.lastTaskTime(); assertThat("Can't get last interval if no tests run", false, equalTo(true)); } catch (IllegalStateException ex) { // Ok } }