GrobidTimer { public Map<String, Long> getAllSavedTimes() { return times; } GrobidTimer();  GrobidTimer(final boolean pStartNow); void start(); void stop(final String pTag); Long getElapsedTimeFromStart(final String pTag); Long getElapsedTime(final String pTagStart, final String pTagStop); Long getTime(final String pTag); String getElapsedTimeFromStartFormated(final String pTag); String getElapsedTimeFormated(final String pTagStart, final String pTagStop); String getTimeFormated(final String pTag); void pauseTimer(); void restartTimer(); Map<String, Long> getAllSavedTimes(); static String formatTime(final Long pTime); static final String START; static final String STOP; }
@Test public void testGrobidTimerEmptyConstructor() { timer = new GrobidTimer(); assertNotNull("The Map should be initiated.", timer.getAllSavedTimes()); assertTrue("The Map should be empty", timer.getAllSavedTimes() .isEmpty()); }