@Override public void run() { super.run(); synchronized (MessengerTestHelper.this) { mDone = true; if (!mSuccess && mFailure == null) { mFailure = new RuntimeException("no failure exception set"); } MessengerTestHelper.this.notifyAll(); } }
public void run() { Process.setThreadPriority(priority); super.run(); }