Code example for ListeningExecutorService

Methods: shutdown

0
      api.deleteCookbook(PREFIX, "1.0.0");
      api.deleteCookbook(PREFIX + 1, "0.0.0");
      api.deleteCookbook(PREFIX + 1, "1.0.0");
 
      this.testExecutorService.shutdown();
      this.testListeningExecutorService.shutdown();
 
      super.tearDown(); 
   } 
 
   @Test
   public void testExecute() { 
      assertTrue(size(strategy.execute("_default")) > 0, "Expected one or more elements");
   } 
 
   @Test
   public void testExecuteConcurrentlyWithExecutorService() { 
      assertTrue(size(strategy.execute(testExecutorService, "_default")) > 0,
            "Expected one or more elements"); 
   }