Ejemplo n.º 1
0
 public void testNoOpScheduledExecutorShutdown() {
   ListeningScheduledExecutorService executor = TestingExecutors.noOpScheduledExecutor();
   assertFalse(executor.isShutdown());
   assertFalse(executor.isTerminated());
   executor.shutdown();
   assertTrue(executor.isShutdown());
   assertTrue(executor.isTerminated());
 }
Ejemplo n.º 2
0
 /*
  * (non-Javadoc)
  *
  * @see com.google.common.util.concurrent.AbstractScheduledService#shutDown()
  */
 @Override
 protected void shutDown() throws Exception {
   service.shutdown();
   super.shutDown();
 }