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

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


  }
 
  @Test
  public void findsTrack() throws Exception {
    scannerService.add(set(aretha));
    Artist artist = new Artist("Aretha Franklin");
    int artistId = musicDao.getArtistId(artist);
   
    List<Album> albums = browserService.getAlbums(artistId, true);
    assertAlbums(albums, artist, UNKNOWN_ALBUM);
   
View Full Code Here


  @Test
  public void findsTracks() throws Exception {
    scannerService.add(set(media1));
   
    Artist artist = new Artist("The Beatles");
    int artistId = musicDao.getArtistId(artist);
   
    List<Album> albums = browserService.getAlbums(artistId, true);
    Album redAlbum = getAlbum(albums, "1962-1966");
   
View Full Code Here

  @Test
  public void findsVariousArtistsTracks() throws Exception {
    scannerService.add(set(media5));
   
    Artist artist = new Artist("Various Artists");
    int artistId = musicDao.getArtistId(artist);
   
    List<Album> albums = browserService.getAlbums(artistId, true);
    assertAlbums(albums, artist, "Music From Searching For Wrong-Eyed Jesus");
   
View Full Code Here

    scannerService.add(set(aretha));
  }
 
  @Test
  public void findsCoverArtFileForTrack() throws Exception {
    Artist artist = new Artist("Artist Name");
    int artistId = musicDao.getArtistId(artist);
   
    scannerService.add(set(media3));
    List<Album> albums = browserService.getAlbums(artistId, false, true);
    int trackId = albums.get(1).getTrackIds().get(0);
View Full Code Here

        "Folder artwork" + separatorChar + "folder.png"));
  }
 
  @Test
  public void addsCoverArtPathForTrack() throws Exception {
    Artist artist = new Artist("Artist Name");
    int artistId = musicDao.getArtistId(artist);
   
    scannerService.add(set(media3));
    List<Album> albums = browserService.getAlbums(artistId, false, true);
    int trackId = albums.get(0).getTrackIds().get(0);
View Full Code Here

 
  private void assertArtists(List<Artist> artists, String... artistNames) {
    Assert.assertNotNull(artists);
    Assert.assertEquals(artistNames.length, artists.size());
    for (String artistName : artistNames) {
      Assert.assertTrue(artists.contains(new Artist(artistName)));
    }
  }
View Full Code Here

 
  @Test
  public void artistTopTagsUpdateUpdatesAllArtists() throws ApplicationException, IOException {
    clearLibraryAndAddCherTrack();
   
    WebserviceInvocation wi = new WebserviceInvocation(ARTIST_GET_TOP_TAGS, new Artist(artistName));
    Assert.assertTrue(webserviceHistoryService.isWebserviceInvocationAllowed(wi));
   
    Set<String> artistNames = webserviceHistoryService.getArtistNamesScheduledForUpdate(ARTIST_GET_TOP_TAGS);
    Assert.assertNotNull(artistNames);
    Assert.assertEquals(1, artistNames.size());
View Full Code Here

  }

  @Test
  public void importArtistTopTracksNotPossibleTwice() {
    Calltype TOP = Calltype.ARTIST_GET_TOP_TRACKS;
    Artist artist1 = new Artist("Esben And The Witch");
    Artist artist2 = new Artist("Espers");
    Artist artist3 = new Artist("Essie Jain");
    WebserviceInvocation topArtist1 = new WebserviceInvocation(TOP, artist1);
    WebserviceInvocation topArtist2 = new WebserviceInvocation(TOP, artist2);
    WebserviceInvocation topArtist3 = new WebserviceInvocation(TOP, artist3);
   
    deleteWebserviceInvocations();
View Full Code Here

  }
 
  @Test
  public void webserviceHistoryIsCaseInsensitive() {
    Calltype TOP = Calltype.ARTIST_GET_TOP_TRACKS;
    Artist artist1 = new Artist("Håll Det Äkta");
    Artist artist2 = new Artist("HÅLL DET ÄKTA");
    WebserviceInvocation topArtist1 = new WebserviceInvocation(TOP, artist1);
    WebserviceInvocation topArtist2 = new WebserviceInvocation(TOP, artist2);
   
    deleteWebserviceInvocations();
View Full Code Here

 
  @Test
  public void importArtistSimilaritiesAndTopTracksWorkIndependently() {
    Calltype TOP = Calltype.ARTIST_GET_TOP_TRACKS;
    Calltype SIMILAR = Calltype.ARTIST_GET_SIMILAR;
    Artist artist1 = new Artist("Björk");
    Artist artist2 = new Artist("Björn Olsson");

    WebserviceInvocation topArtist1 = new WebserviceInvocation(TOP, artist1);
    WebserviceInvocation topArtist2 = new WebserviceInvocation(TOP, artist2);
    WebserviceInvocation similarArtist1 = new WebserviceInvocation(SIMILAR, artist1);
    WebserviceInvocation similarArtist2 = new WebserviceInvocation(SIMILAR, artist2);
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.