I found the answer to this problem here:
You need to run the test-runner on a new thread, and then run the core of the actual test on the main/message-thread. For a more detailed explanation follow the link above.
I found the answer to this problem here:
You need to run the test-runner on a new thread, and then run the core of the actual test on the main/message-thread. For a more detailed explanation follow the link above.