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

Examples of com.github.hakko.musiccabinet.domain.model.aggr.TagTopArtists


      artistRelations.add(new ArtistRelation(targetArtist, 0.33f));
    }
    artistRelationDao.createArtistRelations(cher, artistRelations);

    tagDao.createTags(asList("disco"));
    tagDao.createTopArtists(Arrays.asList(new TagTopArtists("disco",
        Arrays.asList(cher, madonna, cyndi, celine, kylie))));
   
    Track track1, track2, track3;
    artistTopTracksDao.createTopTracks(madonna, Arrays.asList(
        track1 = new Track(madonna, "Like A Prayer"),
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

        WSResponse wsResponse = tagTopArtistsClient.getTopArtists(tag);
        if (wsResponse.wasCallAllowed() && wsResponse.wasCallSuccessful()) {
          StringUtil stringUtil = new StringUtil(wsResponse.getResponseBody());
          TagTopArtistsParser parser =
              new TagTopArtistsParserImpl(stringUtil.getInputStream());
          topArtists.add(new TagTopArtists(tag.getName(), parser.getArtists()));
        }
      } catch (ApplicationException e) {
        LOG.warn("Fetching top artist for " + tag.getName() + " failed.", e);
      }
      addFinishedOperation();
View Full Code Here

TOP

Related Classes of com.github.hakko.musiccabinet.domain.model.aggr.TagTopArtists

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.