Examples of Artist


Examples of org.mapstruct.ap.test.nestedsourceproperties.source.Artist

        Label label = new Label();
        label.setStudio( studio );
        label.setName( "EMY" );

        Artist artist = new Artist();
        artist.setName( "The Beatles" );
        artist.setLabel( label );

        Song song = new Song();
        song.setArtist( artist );
        song.setTitle( "A Hard Day's Night" );
View Full Code Here

Examples of org.musicdb.Artist

      Mongo _mongo = new Mongo();
      final Mongo mongo = _mongo;
      try {
        final DB db = mongo.getDB("testdb");
        final DBCollection dbCollection = db.getCollection("testCollection");
        Artist _artist = new Artist();
        final Procedure1<Artist> _function = new Procedure1<Artist>() {
          public void apply(final Artist it) {
            it.setName("John Coltrane");
            final Procedure1<Album> _function = new Procedure1<Album>() {
              public void apply(final Album it) {
                it.setTitle("A Love Supreme");
                it.setYear(1965);
                MusicDBXtendTest.this.addTrack(it, "Part 1: Acknowledgement", "7:43");
                MusicDBXtendTest.this.addTrack(it, "Part 2: Resolution", "7:20");
                MusicDBXtendTest.this.addTrack(it, "Part 3: Pursuance", "10:42");
                MusicDBXtendTest.this.addTrack(it, "Part 4: Psalm", "7:05");
              }
            };
            MusicDBXtendTest.this.addAlbum(it, _function);
            final Procedure1<Album> _function_1 = new Procedure1<Album>() {
              public void apply(final Album it) {
                it.setTitle("Impressions");
                it.setYear(1961);
                MusicDBXtendTest.this.addTrack(it, "India", "13:52");
                MusicDBXtendTest.this.addTrack(it, "Up \'gainst the Wall", "3:12");
                MusicDBXtendTest.this.addTrack(it, "Impressions", "14:40");
                MusicDBXtendTest.this.addTrack(it, "After the Rain", "4:07");
              }
            };
            MusicDBXtendTest.this.addAlbum(it, _function_1);
          }
        };
        final Artist john = ObjectExtensions.<Artist>operator_doubleArrow(_artist, _function);
        Iterable<? extends Track> _oevre = john.getOevre();
        int _size = IterableExtensions.size(_oevre);
        Assert.assertEquals(8, _size);
        this._mongoExtensions.save(dbCollection, john);
        Artist _artist_1 = new Artist();
        final Procedure1<Artist> _function_1 = new Procedure1<Artist>() {
          public void apply(final Artist it) {
            it.setName("John Coltrane");
          }
        };
        Artist _doubleArrow = ObjectExtensions.<Artist>operator_doubleArrow(_artist_1, _function_1);
        final Artist johnFromDb = this._mongoExtensions.<Artist>findOneBean(dbCollection, _doubleArrow);
        Assert.assertNotNull(johnFromDb);
        List<Album> _albums = johnFromDb.getAlbums();
        int _size_1 = _albums.size();
        Assert.assertEquals(2, _size_1);
        List<Album> _albums_1 = johnFromDb.getAlbums();
        final Album albumFromDb = _albums_1.get(1);
        Duration _duration = albumFromDb.getDuration();
        String _string = _duration.toString();
        Assert.assertEquals("35:51", _string);
      } finally {
View Full Code Here

Examples of org.plugtree.training.model.Artist

        return playlist;
    }

    private Song createThrillerSong() {
        Song song = new Song("Thriller", Song.Genre.POP, 6540, 1982);
        song.addArtist(new Artist("Michael", "Jackson"));


        return song;

View Full Code Here

Examples of org.skyscreamer.yoga.demo.model.Artist

        users.get( from ).getFriends().add( users.get( to ) );
    }

    private void newArtist( long id, String name )
    {
        Artist artist = new Artist();
        artist.setId( id );
        artist.setName( name );
        artists.put( id, artist );
    }
View Full Code Here

Examples of org.skyscreamer.yoga.test.model.extended.Artist

        return new User( 3, "Solomon Duskis", "solomon@skyscreamer.org", new HashSet<User>(), new HashSet<Artist>() );
    }

    public static Artist arcadeFire()
    {
        return new Artist( 1, "Arcade Fire", new ArrayList<Album>(), new HashSet<User>() );
    }
View Full Code Here

Examples of org.socialmusicdiscovery.server.business.model.core.Artist

    @Test
    public void testModelGlobalIdentity() throws Exception {
        loadTestData(getClass().getPackage().getName(), "The Bodyguard.xml");
        em.getTransaction().begin();
        try {
            Artist artist = artistRepository.findByName("Whitney Houston").iterator().next();
            Release release = releaseRepository.findByName("The Bodyguard (Original Soundtrack Album)").iterator().next();

            GlobalIdentityEntity identity = new GlobalIdentityEntity();
            identity.setSource(GlobalIdentity.SOURCE_MUSICBRAINZ);
            identity.setEntityId(artist.getId());
            identity.setUri("0307edfc-437c-4b48-8700-80680e66a228");
            identity.setLastUpdated(new Date());
            identity.setLastUpdatedBy("JUnit");
            globalIdentityRepository.create(identity);
View Full Code Here

Examples of se.despotify.domain.media.Artist

//    System.out.flush();
   

    MemoryStore store = new MemoryStore();

    Artist artist;

    // generated tests

    artist = store.getArtist("d00d9e7b82894fb8851a109c82568eb5");
    new LoadArtist(store, artist).send(connection.getProtocol());
    artist.accept(new VisitorAdapter() {
      @Override
      public void visit(Artist artist) {
        assertEquals("d00d9e7b82894fb8851a109c82568eb5", artist.getHexUUID());
        assertEquals("spotify:artist:6kACVPfCOnqzgfEF5ryl0x", artist.getSpotifyURL());
        assertEquals("http://open.spotify.com/artist/6kACVPfCOnqzgfEF5ryl0x", artist.getHttpURL());
        assertEquals("Johnny Cash", artist.getName());
//        assertNull(artist.getPopularity());
//        assertNull(artist.getPortrait());
        // TODO: artist.getSimilarArtists();
      }
    });
    artist = store.getArtist("4f9873e19e5a4b4096c216c98bcdb010");
    new LoadArtist(store, artist).send(connection.getProtocol());
    artist.accept(new VisitorAdapter() {
      @Override
      public void visit(Artist artist) {
        assertEquals("4f9873e19e5a4b4096c216c98bcdb010", artist.getHexUUID());
        assertEquals("spotify:artist:2qc41rNTtdLK0tV3mJn2Pm", artist.getSpotifyURL());
        assertEquals("http://open.spotify.com/artist/2qc41rNTtdLK0tV3mJn2Pm", artist.getHttpURL());
        assertEquals("Ryan Adams", artist.getName());
//        assertNull(artist.getPopularity());
//        assertNull(artist.getPortrait());
        // TODO: artist.getSimilarArtists();
      }
    });
    artist = store.getArtist("db614c7060fc47baa7be732d88ae446d");
    new LoadArtist(store, artist).send(connection.getProtocol());
    artist.accept(new VisitorAdapter() {
      @Override
      public void visit(Artist artist) {
        assertEquals("db614c7060fc47baa7be732d88ae446d", artist.getHexUUID());
        assertEquals("spotify:artist:6FXMGgJwohJLUSr5nVlf9X", artist.getSpotifyURL());
        assertEquals("http://open.spotify.com/artist/6FXMGgJwohJLUSr5nVlf9X", artist.getHttpURL());
        assertEquals("Massive Attack", artist.getName());
//        assertNull(artist.getPopularity());
//        assertNull(artist.getPortrait());
        // TODO: artist.getSimilarArtists();
      }
    });
    artist = store.getArtist("f4d5d82d09124feda0633a2671f8c81a");
    new LoadArtist(store, artist).send(connection.getProtocol());
    artist.accept(new VisitorAdapter() {
      @Override
      public void visit(Artist artist) {
        assertEquals("f4d5d82d09124feda0633a2671f8c81a", artist.getHexUUID());
        assertEquals("spotify:artist:7rZR0ugcLEhNrFYOrUtZii", artist.getSpotifyURL());
        assertEquals("http://open.spotify.com/artist/7rZR0ugcLEhNrFYOrUtZii", artist.getHttpURL());
        assertEquals("Miles Davis", artist.getName());
//        assertNull(artist.getPopularity());
//        assertNull(artist.getPortrait());
        // TODO: artist.getSimilarArtists();
      }
    });
    artist = store.getArtist("f6150726a8e94c89a7cf336d3f72be9c");
    new LoadArtist(store, artist).send(connection.getProtocol());
    artist.accept(new VisitorAdapter() {
      @Override
      public void visit(Artist artist) {
        assertEquals("f6150726a8e94c89a7cf336d3f72be9c", artist.getHexUUID());
        assertEquals("spotify:artist:7ulIMfVKiXh8ecEpAVHIAY", artist.getSpotifyURL());
        assertEquals("http://open.spotify.com/artist/7ulIMfVKiXh8ecEpAVHIAY", artist.getHttpURL());
        assertEquals("Electrelane", artist.getName());
//        assertNull(artist.getPopularity());
//        assertNull(artist.getPortrait());
        // TODO: artist.getSimilarArtists();
      }
    });
View Full Code Here

Examples of us.jyg.freshet.dao.model.Artist

            return true;
    }

    public Song saveSong(SongData songData) {
      Album album = albumDao.getAlbum(songData.getAlbum());
      Artist artist = artistDao.getArtist(songData.getArtist());
      Genre genre = genreDao.getGenre(songData.getGenre());
      Song song = new Song(songData.getName(), songData.getPath(), songData
          .getTrack(), album, artist, genre);
      saveSong(song);
      return song;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.