Espresso test for Notification to showing up
问题 I want to test that when I receive push, Notification will be showing up. And it might be as well to check its properties (like title, set intent and so on.) How can I do so? @Before public void setupTest() { mData.putString(PushNotificator.KEY_PUSH_TYPE, PushType.PROJECT_OFFER.toString()); mData.putString(PushNotificator.KEY_PUSH_OBJECT, pushObjectJsonString); mContext = InstrumentationRegistry.getContext(); } @Test public void projectOfferCreatedFromBundle() { mPushNotificator = new