예제 #1
0
  @Test
  public void shouldReturnFalseWhenMovieNameDontMatch() {
    Movie movie = new Movie("The Boy in the Striped pyjamas", "Mark Herman", 2008, 7.8f);

    assertEquals(false, movie.compareWithMovieName("V For Vendetta"));
  }
예제 #2
0
  @Test
  public void shouldReturnTrueWhenMovieNameMatches() {
    Movie movie = new Movie("The Boy in the Striped pyjamas", "Mark Herman", 2008, 7.8f);

    assertEquals(true, movie.compareWithMovieName("The boy in the striped pyjamas"));
  }