Back to project page Amphitheatre.
The source code is released under:
Apache License
If you think the Android project Amphitheatre listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jerrellmardis.amphitheatre.api; /*ww w . j a va2 s . co m*/ import com.jerrellmardis.amphitheatre.model.tmdb.SearchResult; import com.jerrellmardis.amphitheatre.model.tmdb.Episode; import android.test.AndroidTestCase; /** * Tests TVDB client */ public class TVDBClientTest extends AndroidTestCase { public void testShouldSearchForHeroesSeries() { SearchResult searchResult = ApiClient.getInstance().createTVDBClient().findTvShow("Heroes"); assertNotNull(searchResult); assertEquals(searchResult.getTotal_results(), Integer.valueOf(23)); assertNotNull(searchResult.getResults()); assertEquals(searchResult.getResults().get(0).getName(), "Heroes"); } public void testShouldFetchHeroesEpisode() { Long seriesid = 79501l; Long id = 308906l; Episode episode= ApiClient.getInstance().createTVDBClient().getEpisode(seriesid,"2006-09-25"); assertNotNull(episode); assertEquals(episode.getId(),id); assertEquals(episode.getAirDate(), "2006-09-25"); assertEquals(episode.getName(), "Genesis"); assertEquals(episode.getTmdbId(), seriesid); } }