121122123124125126127128129130131
assertTrue(w.isWorking()); w.setWorking(false); w.interrupt(); assertFalse(w.isWorking()); ss.construct(); ss.subtractThread(); ss.subtractThread(); ss.subtractThread(); ss.shutdown(); }
122123124125126127128129130131132
w.setWorking(false); w.interrupt(); assertFalse(w.isWorking()); ss.construct(); ss.subtractThread(); ss.subtractThread(); ss.subtractThread(); ss.shutdown(); } @Test
123124125126127128129130131132133
w.interrupt(); assertFalse(w.isWorking()); ss.construct(); ss.subtractThread(); ss.subtractThread(); ss.subtractThread(); ss.shutdown(); } @Test public void testAdjustThreadPool() throws Exception {