@Test(timeout = TEST_TIMEOUT) public void destroy() throws Exception { CompletableFuture future = startRunnableBase(); assertTrue(runnableBase.isAlive()); runnableBase.destroy(); future.get(); assertTrue(runnableBase.isDestroyed()); }
public void destroy() { status.set(DESTROYED); }
RunnableBase implements Runnable { public void destroy() { status.set(DESTROYED); } }
RunnableBase implements Runnable { public void destroy() { status.set(DESTROYED); }  }
RunnableBase implements Runnable { public void destroy() { status.set(DESTROYED); }  void destroy(); boolean isDestroyed(); }
RunnableBase implements Runnable { public void destroy() { status.set(DESTROYED); }  void destroy(); boolean isDestroyed();  }