Created
May 12, 2012 15:50
-
-
Save nalitzis/2667258 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void testGetMedia() throws Throwable{ | |
final Context context = getInstrumentation().getTargetContext(); | |
final CountDownLatch signal = new CountDownLatch(1); | |
final NetworkTasks networkTasks = new NetworkTasks(context, new GetMediaListener(signal)); | |
runTestOnUiThread(new Runnable() { | |
public void run() { | |
Media media = new Media(); | |
media.setId("179"); | |
networkTasks.getMedia(media); | |
} | |
}); | |
signal.await(30, TimeUnit.SECONDS); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment