1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

Running TestCase in Thread


Last Updated:

  1. asrekik

    asrekik New Member This Topic's Starter

    Joined:
    Oct 6, 2010
    Messages:
    2
    Likes Received:
    0
    Hi,
    How have a TestCase that calls an asynchronous functions. the callback of this function is called by a thread, so we can't the assert test is made in the thread, not in the testcase thread.
    So how we can run the callback function in the testcase thread?
    I found the same problem when this callback liked to change the UI, so the solution that i find is to run the code in the runOnUiThread.
     

    Advertisement

Share This Page

Loading...