Handler.handleMessage is not called in test, but is called in the app
问题 I have a service that runs in a separate process. The service spawns a new thread in onCreate() method. This thread sends messages back to the service. If I start the app manually everything works fine - messages are received by the Handler in my service. But in my test handleMessage() method is never get called. How can I fix my test to make handleMessage() method work? Thanks! Service: public class MyService extends Service { private ServiceHandler mHandler; private final int MSG_HELLO