@Test public void execute_singleRunnable_executionSuccessful() throws Exception { final Semaphore semaphore = new Semaphore(0); Runnable runnable = new Runnable() { @Override public void run() { semaphore.release(); } }; SUT.post(runnable); semaphore.acquireUninterruptibly(); }
public void post(Runnable runnable) { mThreadPoolExecutor.execute(runnable); }
BackgroundThreadPoster { public void post(Runnable runnable) { mThreadPoolExecutor.execute(runnable); } }
BackgroundThreadPoster { public void post(Runnable runnable) { mThreadPoolExecutor.execute(runnable); } BackgroundThreadPoster(); }
BackgroundThreadPoster { public void post(Runnable runnable) { mThreadPoolExecutor.execute(runnable); } BackgroundThreadPoster(); void post(Runnable runnable); }
BackgroundThreadPoster { public void post(Runnable runnable) { mThreadPoolExecutor.execute(runnable); } BackgroundThreadPoster(); void post(Runnable runnable);  }