Skip to content

Instantly share code, notes, and snippets.

@emmano
Created April 20, 2020 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emmano/6eb75a1897870e4a6ca889057768211e to your computer and use it in GitHub Desktop.
Save emmano/6eb75a1897870e4a6ca889057768211e to your computer and use it in GitHub Desktop.
Sample class that has a dependency on Looper
public class LooperDependent {
static final Handler HANDLER =
new Handler(Looper.getMainLooper()) {
@Override
public void handleMessage(Message msg) {
throw new AssertionError("Unknown handler message received: " + msg.what);
}
};
public void someMethodToVerify() {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment