(long gap, int times)
| 374 | } |
| 375 | |
| 376 | private static void sleep(long gap, int times) { |
| 377 | try { |
| 378 | for (int i = 0; i < times; ++i) { |
| 379 | Thread.sleep(gap); |
| 380 | System.out.println("-- sleep " + i); |
| 381 | } |
| 382 | } catch (InterruptedException e) { |
| 383 | e.printStackTrace(); |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | private static void log(String msg) { |
| 388 | System.out.println("======================================== " + msg + " ========================================"); |
no outgoing calls
no test coverage detected