コード例 #1
0
  public void testFindAll() {
    MockMusicService service = new MockMusicService();
    List<Song> songs = service.findAll();
    Assert.assertNotNull(songs);

    boolean testResultFound = false;
    for (Song song : songs) {
      if (song.getAlbumTitle().equalsIgnoreCase("Dark Horse")) {
        testResultFound = true;
      }
    }
    Assert.assertEquals(false, testResultFound);
  }