Package fm.last.musicbrainz.data.model

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


  @Autowired
  private ReleaseDao dao;

  @Test
  public void getByExistingIdReturnsOneRelese() {
    Release release = dao.getById(1);
    assertThat(release.getName(), is("The Best of Rick Astley"));
  }
View Full Code Here


    assertThat(release.getName(), is("The Best of Rick Astley"));
  }

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

  }

  @Test
  public void getByExistingGidReturnsOneRelease() {
    UUID gid = UUID.fromString("e1f5f807-3851-48fb-838b-fb8a069f53e7");
    Release release = dao.getByGid(gid);
    assertThat(release.getName(), is("The Best of Rick Astley"));
  }
View Full Code Here

  }

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

  }

  @Test
  public void getByExistingRedirectedGidReturnsOneRelease() {
    UUID gid = UUID.fromString("5d32bacc-d62a-4e77-9f0e-d934e53d5359");
    Release release = dao.getByGid(gid);
    assertThat(release.getName(), is("Multi-Disc Extravaganza"));
  }
View Full Code Here

  }

  @Test
  public void getByExistingGidReturnsOneReleaseThatHasNoRedirectedGids() {
    UUID gid = UUID.fromString("f80addb0-1f8c-3c37-a4a9-6f8867be35fe");
    Release release = dao.getByGid(gid);
    assertThat(release.getName(), is("The Warning"));
  }
View Full Code Here

TOP

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

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.