Package de.linwave.music

Examples of de.linwave.music.Artist


  }

  public void testArtistJohnLennon()
  {
    int cnt = 0;
    ObjectSet<Artist> artists = gtm.queryByExample(new Artist("John Lennon"), 1);
    for (Artist artist : artists) {
      if (!artist.getName().equals("John Lennon"))
        fail("Invalid artist. Expected 'John Lennon' but got '" + artist.getName() + "'");
      cnt++;
    }
View Full Code Here


  }

  private void loadArtist()
  {
    Band theBeatles = new Band("THE BEATLES");
    Artist ringo = new Artist("Ringo Starr");
    Artist paul = new Artist("Paul Mc.Cartney");

    Artist john = new Artist("John Lennon");
    Adress adress = new Adress("Kings Road 1", "London", 12345);
    john.setAdress(adress);

    Artist george = new Artist("George Harrison");
    theBeatles.getAritsts().addAll(Arrays.asList(ringo, paul, john, george));
    //
    Band stones = new Band("Rolling Stones");
    stones.getAritsts().add(new Artist("Mick Jagger"));

    //
    Album album = new Album("Seargent Peppers lonely hearts club", 1969, theBeatles);
    album.getTracks().add(new Track("Yellow submarine", 120, rock, paul));
    album.getTracks().add(new Track("Abbey road", 96, classic, john));
View Full Code Here

TOP

Related Classes of de.linwave.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.