Controlling when an automation test ends - Espresso
问题 I have an unusual situation I am testing. I am using Espresso to write my tests. I know Espresso and InstrumentationTestCase is not meant to do this. I have a Listener I created in one of my classes that will notify me of a change of a certain value. I use the listener in my test suite. When I get the value from the listener, I need to assert the value was changed as such. My problem is the test will end before I will receive the value form the listener. private void sendSpeedChanges() {