Search in sources :

Example 1 with SgMovie

use of com.battlelancer.seriesguide.model.SgMovie in project SeriesGuide by UweTrottmann.

the class TmdbSyncTest method updatesMovieWithLastUpdatedIsNull.

@Test
public void updatesMovieWithLastUpdatedIsNull() {
    // released today + last updated IS NULL
    insertMovie(12, System.currentTimeMillis(), null);
    doUpdateAndAssertSuccess();
    // the movie should have been updated
    List<SgMovie> movies = movieHelper.getAllMovies();
    SgMovie dbMovie = findMovieWithId(movies, 12);
    assertThat(dbMovie.lastUpdated).isNotNull();
    assertThat(dbMovie.lastUpdated).isNotEqualTo(0);
}
Also used : SgMovie(com.battlelancer.seriesguide.model.SgMovie) Test(org.junit.Test)

Aggregations

SgMovie (com.battlelancer.seriesguide.model.SgMovie)1 Test (org.junit.Test)1