@Test public void testTrySleep() { long currentTimeMillis = System.currentTimeMillis(); ThreadUtils.trySleep(3000); assertEquals(currentTimeMillis + 3000, System.currentTimeMillis(), 0); }
public static void trySleep(final long milliseconds) { try { Thread.sleep(milliseconds); } catch (final InterruptedException e) { logger.trace("A sleep broken"); } }
ThreadUtils { public static void trySleep(final long milliseconds) { try { Thread.sleep(milliseconds); } catch (final InterruptedException e) { logger.trace("A sleep broken"); } } }
ThreadUtils { public static void trySleep(final long milliseconds) { try { Thread.sleep(milliseconds); } catch (final InterruptedException e) { logger.trace("A sleep broken"); } }  }
ThreadUtils { public static void trySleep(final long milliseconds) { try { Thread.sleep(milliseconds); } catch (final InterruptedException e) { logger.trace("A sleep broken"); } }  static void trySleep(final long milliseconds); }
ThreadUtils { public static void trySleep(final long milliseconds) { try { Thread.sleep(milliseconds); } catch (final InterruptedException e) { logger.trace("A sleep broken"); } }  static void trySleep(final long milliseconds);  }