Пример #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"));
  }