PoolThread { public void singleThread() { ExecutorService pool = Executors.newSingleThreadExecutor(); for (int i = 0; i < 5; i++) { pool.execute(getSingleThread(i + "")); } pool.shutdown(); }  static void main(String[] args); void cachedThreadPool(); void fixedThread(); void singleThread(); void schelThread(); void await(); Thread getThread(final String name); Thread getSingleThread(final String name); Thread getSleepThread(final String name);  }
@Test public void testSingleThread() throws Exception { PoolThread pt = new PoolThread(); pt.singleThread(); }