package ar.edu.unrc.exa.dc.dose2016.riocuartobandasderock.modelTest;

import org.junit.Test;
import static org.junit.Assert.*;

import ar.edu.unrc.exa.dc.dose2016.riocuartobandasderock.model.Album;
import ar.edu.unrc.exa.dc.dose2016.riocuartobandasderock.model.Artist;
import ar.edu.unrc.exa.dc.dose2016.riocuartobandasderock.model.Band;
import ar.edu.unrc.exa.dc.dose2016.riocuartobandasderock.model.Genre;

import java.util.LinkedList;
import java.util.UUID;

public class BandTest {
  
	/**
	 * in this test, initily we create a band, then we check 
	 * with getters all attributes
	 * are the same are the same as the inserted
	 */
	/*
  @Test
  public void shortConstructorTest(){
    String a_name = "Led Zeppeling";
    String a_description = "Sex,Drugs,Rock&Roll";
    String a_release = "13/09/2016";
    Genre a_genere = new Genre(a_name,a_description);
    LinkedList<Artist> an_artist_list = new LinkedList<Artist>();
    Band band = new Band(a_name,a_genere,an_artist_list,a_release);
    assertEquals(band.getName(),a_name);
    assertEquals(band.getGenere(),a_genere);
    assertEquals(band.getArtistList(),an_artist_list);
    assertEquals(band.getRelease(),a_release);
  }*/
  
  /**
	 * in this test, initily we create a band, then we check 
	 * with getters all attributes
	 * are the same are the same as the inserted
	 */
/*
  @Test
  public void longConstructorTest(){
    String a_name = "Led Zeppeling";
    String a_description = "Sex,Drugs,Rock&Roll";
    String a_release = "13/09/2016";
    Genre a_genere = new Genre(a_name,a_description);
    LinkedList<Artist> an_artist_list = new LinkedList<Artist>();
    LinkedList<Album> an_album_list = new LinkedList<Album>();
    Band band = new Band(a_name,a_genere,an_artist_list,a_release,an_album_list);
    assertEquals(band.getName(),a_name);
    assertEquals(band.getGenere(),a_genere);
    assertEquals(band.getArtistList(),an_artist_list);
    assertEquals(band.getRelease(),a_release);
    assertEquals(band.getAlbum(),an_album_list);
  }
*/
  /**
   * in this test we set an id, and then we check
   * that match with the id created
   */
  @Test
  public void setIdTest(){
    String an_id = "1";
    Band band = new Band();
    band.setId(an_id);
    assertEquals(band.getId(),an_id);
  }
  
  /**
   * in this test we set a name, and then we check
   * that match with the name created
   */
  @Test
  public void setNameTest(){
    Band band = new Band();
    String name = "led zeppeling";
    band.setName(name);
    assertEquals(band.getName(),name);  
  }
  
  /**
   * in this test we set a release, and then we check
   * that match with the release created
   */
  @Test
  public void setReleaseTest(){
    Band band = new Band();
    String release = "13/09/2016";
    band.setRelease(release);
    assertEquals(band.getRelease(),release);  
  }
  
  /**
   * in this test we set an end, and then we check
   * that match with the end created
   */
  @Test
  public void setEndTest(){
    Band band = new Band();
    String end = "13/09/2016";
    band.setEnd(end);
    assertEquals(band.getEnd(),end);  
  }
  
  /**
   * in this test we set a List of albums, and then we check
   * that match with the list of albums created
   */
  @Test
  public void setAlbunListTest(){
    Band band = new Band();
    LinkedList<Album> an_album_list = new LinkedList<Album>();
    band.setAlbumList(an_album_list);
    assertEquals(band.getAlbum(),an_album_list);  
  }
  
  /**
   * in this test we set a list of Artists, and then we check
   * that match with the list of artists created
   */
  @Test
  public void setArtist(){
    Band band = new Band();
    LinkedList<Artist> an_artist_list = new LinkedList<Artist>();
    band.setArtistList(an_artist_list);
    assertEquals(band.getArtistList(),an_artist_list);  
  }
  
  /**
   * in this test we set a Genere , and then we check
   * that match with the genere created
   */
  @Test
  public void setGenereTest(){
    Band band = new Band();
    Genre a_genere = new Genre();
    band.setGenere(a_genere);
    assertEquals(band.getGenere(),a_genere);  
  }
}

@@ -2547,1270 +2547,8 @@
 %0A  %0A
-  /**%0A   * in this test we set a release, and then we check%0A   * that match with the release created%0A   */%0A  @Test%0A  public void setReleaseTest()%7B%0A    Band band = new Band();%0A    String release = %2213/09/2016%22;%0A    band.setRelease(release);%0A    assertEquals(band.getRelease(),release);  %0A  %7D%0A  %0A  /**%0A   * in this test we set an end, and then we check%0A   * that match with the end created%0A   */%0A  @Test%0A  public void setEndTest()%7B%0A    Band band = new Band();%0A    String end = %2213/09/2016%22;%0A    band.setEnd(end);%0A    assertEquals(band.getEnd(),end);  %0A  %7D%0A  %0A  /**%0A   * in this test we set a List of albums, and then we check%0A   * that match with the list of albums created%0A   */%0A  @Test%0A  public void setAlbunListTest()%7B%0A    Band band = new Band();%0A    LinkedList%3CAlbum%3E an_album_list = new LinkedList%3CAlbum%3E();%0A    band.setAlbumList(an_album_list);%0A    assertEquals(band.getAlbum(),an_album_list);  %0A  %7D%0A  %0A  /**%0A   * in this test we set a list of Artists, and then we check%0A   * that match with the list of artists created%0A   */%0A  @Test%0A  public void setArtist()%7B%0A    Band band = new Band();%0A    LinkedList%3CArtist%3E an_artist_list = new LinkedList%3CArtist%3E();%0A    band.setArtistList(an_artist_list);%0A    assertEquals(band.getArtistList(),an_artist_list);  %0A  %7D%0A  
 %0A  /

delete extra test of bands