Package com.github.hakko.musiccabinet.domain.model.music

Examples of com.github.hakko.musiccabinet.domain.model.music.Artist


      @Override
      protected WebserviceHistoryService getHistoryService() {
        return Mockito.mock(WebserviceHistoryService.class);
      }

    }.getTrackSimilarity(new Track(new Artist(artistName), trackName));
  }
View Full Code Here


   
    Assert.assertNotNull(relatedArtists);
    Assert.assertEquals(2, relatedArtists.size());

    List<Artist> artists = Arrays.asList(
        new Artist(relatedArtists.get(0).getArtistName()),
        new Artist(relatedArtists.get(1).getArtistName()));

    Assert.assertTrue(artists.contains(madonna));
    Assert.assertTrue(artists.contains(cyndi));

    Assert.assertFalse(artists.contains(cher));
View Full Code Here

    Assert.assertNotNull(relatedArtistNames);
    Assert.assertEquals(2, relatedArtistNames.size());

    List<Artist> artists = new ArrayList<>();
    for (String artistName : relatedArtistNames) {
      artists.add(new Artist(artistName));
    }

    Assert.assertTrue(artists.contains(celine));
    Assert.assertTrue(artists.contains(kylie));
View Full Code Here

    Assert.assertNotNull(relatedArtistNames);
    Assert.assertEquals(3, relatedArtistNames.size());

    List<Artist> artists = new ArrayList<>();
    for (String artistName : relatedArtistNames) {
      artists.add(new Artist(artistName));
    }

    Assert.assertTrue(artists.contains(celine));
    Assert.assertTrue(artists.contains(kylie));
    Assert.assertTrue(artists.contains(cher));
View Full Code Here

    List<String> tagNames = Arrays.asList("disco", "sludge");
    dao.createTags(tagNames);
    dao.setTopTags(tagNames);

    List<TagTopArtists> topArtists = Arrays.asList(
        new TagTopArtists("disco", asList(new Artist("Madonna"))));
    dao.createTopArtists(topArtists);
   
    List<Tag> tags = dao.getTagsWithoutTopArtists();

    Assert.assertEquals(1, tags.size());
View Full Code Here

  @Test
  public void retrievesCorrectedAvailableTags() {
    deleteTags();

    for (int i = 0; i < 5; i++) {
      artistTopTagsDao.createTopTags(new Artist("artist" + i), Arrays.asList(
          new Tag("sludge", (short) 100),
          new Tag("drone", (short) 90),
          new Tag("e-l-e-c-t-r-o", (short) 50),
          new Tag("disco", (short) 10)));
    }
View Full Code Here

      @Override
      protected WebserviceHistoryService getHistoryService() {
        return Mockito.mock(WebserviceHistoryService.class);
      }

    }.getArtistInfo(new Artist(artistName), lang);
  }
View Full Code Here

    assertArtists(browserService.getArtists(), "The Beatles", "Aretha Franklin");
  }
 
  @Test
  public void findsAlbums() throws Exception {
    Artist theBeatles = new Artist("The Beatles");
    int beatlesId = musicDao.getArtistId(theBeatles);
   
    scannerService.add(set(media1));
    assertAlbums(browserService.getAlbums(beatlesId, true), theBeatles, "1962-1966", UNKNOWN_ALBUM);
View Full Code Here

    assertAlbums(browserService.getAlbums(beatlesId, true), theBeatles);
  }

  @Test
  public void findsAlbum() throws Exception {
    Artist theBeatles = new Artist("The Beatles");
    int beatlesId = musicDao.getArtistId(theBeatles);

    scannerService.add(set(media2));

    List<Album> albums = browserService.getAlbums(beatlesId, true);
View Full Code Here

    return sb.toString();
  }

  @Test
  public void findsArtwork() throws Exception {
    Artist artist = new Artist("Artist Name");
    int artistId = musicDao.getArtistId(artist);
   
    scannerService.add(set(media3));
    List<Album> albums = browserService.getAlbums(artistId, true);
   
View Full Code Here

TOP

Related Classes of com.github.hakko.musiccabinet.domain.model.music.Artist

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.