Beispiel #1
0
 @Test
 public void getRemakeOfMovie() {
   Movie movie = _movieService.getMovieById(3560); // Sabrina (1995)
   assertNotNull(movie);
   Movie original = movie.getRemakeOfMovie();
   assertNotNull(original);
   assertTrue(original.getTitle().equals("Sabrina") && original.getYear() == 1954);
 }
Beispiel #2
0
 @Test
 public void getRemadeByMovies() {
   Movie movie = _movieService.getMovieById(2340); // Sabrina (1954)
   assertNotNull(movie);
   Set<Movie> remakes = movie.getRemadeByMovies();
   assertTrue(CollectionUtils.isNotEmpty(remakes));
   assertEquals(1, remakes.size());
   // since we know there is only 1 at this point
   for (Movie remake : remakes) {
     assertTrue(remake.getTitle().equals("Sabrina") && remake.getYear() == 1995);
   }
 }