Make sure to use language-COUNTRY codes for all languages (even the exceptions)

This commit is contained in:
Reinhard Pointner 2017-11-08 11:54:53 +01:00
parent 6b54760699
commit b17f5f030c
1 changed files with 6 additions and 3 deletions

View File

@ -100,9 +100,12 @@ public class TMDbClientTest {
}
@Test
public void getMovieInfoHebrew() throws Exception {
MovieInfo movie = db.getMovieInfo(new Movie(1260396), Locale.forLanguageTag("he-IL"), false);
assertEquals("שבעה", movie.getName());
public void getMovieInfoForceLanguageCode() throws Exception {
MovieInfo shiva = db.getMovieInfo(new Movie(1260396), Locale.forLanguageTag("he-IL"), false);
assertEquals("שבעה", shiva.getName());
MovieInfo raid = db.getMovieInfo(new Movie(1899353), Locale.forLanguageTag("id-ID"), false);
assertEquals("Serbuan Maut", raid.getName());
}
@Test