Package fm.last.musicbrainz.data.model

Examples of fm.last.musicbrainz.data.model.Recording


  @Autowired
  private RecordingDao dao;

  @Test
  public void getByExistingIdReturnsOneRecording() {
    Recording recording = dao.getById(1);
    assertThat(recording.getName(), is("The Saint"));
  }
View Full Code Here


    assertThat(recording.getName(), is("The Saint"));
  }

  @Test
  public void getByNotExistingIdReturnsNull() {
    Recording recording = dao.getById(9001);
    assertThat(recording, is(nullValue()));
  }
View Full Code Here

  }

  @Test
  public void getByExistingGidReturnsOneRecording() {
    UUID gid = UUID.fromString("4ea1383f-aca7-4a39-9839-576cf3af438b");
    Recording recording = dao.getByGid(gid);
    assertThat(recording.getName(), is("The Saint"));
  }
View Full Code Here

  }

  @Test
  public void getByNotExistingGidReturnsNull() {
    UUID gid = UUID.fromString("b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d");
    Recording recording = dao.getByGid(gid);
    assertThat(recording, is(nullValue()));
  }
View Full Code Here

  }

  @Test
  public void getByExistingGidReturnsOneRecordingThatHasNoRedirectedGids() {
    UUID gid = UUID.fromString("2ea1383f-aca7-4a39-9839-576cf3af438b");
    Recording recording = dao.getByGid(gid);
    assertThat(recording.getName(), is("The Sinner"));
  }
View Full Code Here

TOP

Related Classes of fm.last.musicbrainz.data.model.Recording

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.