// generated tests
track = store.getTrack("93f98ea75b4748f797668485a3d01bd0");
manager.send(new LoadTracks(store, track));
track.accept(new VisitorAdapter() {
@Override
public void visit(Track track) {
assertEquals("93f98ea75b4748f797668485a3d01bd0", track.getId());
assertEquals("spotify:track:4vdV2Eua6RkUoUM51jdH56", track.getSpotifyURI());
assertEquals("http://open.spotify.com/track/4vdV2Eua6RkUoUM51jdH56", track.getHttpURL());
assertEquals("One", track.getTitle());
assertEquals("3d44ff9d9b75a44b835f7e719a193e9033cae6af", track.getCover());
assertEquals(1, track.getFiles().size());
assertEquals("36fa172ca1a707ba71e79757f3014cc1a26fbbf6", track.getFiles().get(0));
assertEquals(231200l, track.getLength().longValue());
assertTrue(track.getPopularity() > 0f);
assertEquals(20, track.getTrackNumber().intValue());
assertEquals(2005, track.getYear().intValue());
assertEquals("d00d9e7b82894fb8851a109c82568eb5", track.getArtist().getId());
assertEquals("spotify:artist:6kACVPfCOnqzgfEF5ryl0x", track.getArtist().getSpotifyURI());
assertEquals("http://open.spotify.com/artist/6kACVPfCOnqzgfEF5ryl0x", track.getArtist().getHttpURL());
assertEquals("Johnny Cash", track.getArtist().getName());
assertNull(track.getArtist().getPopularity());
assertNull(track.getArtist().getPortrait());
// TODO: track.getArtist().getSimilarArtists();
assertEquals("spotify:album:05BIC4TZptbiQoF03QhojS", track.getAlbum().getSpotifyURI());
assertEquals("http://open.spotify.com/album/05BIC4TZptbiQoF03QhojS", track.getAlbum().getHttpURL());
assertEquals("The Legend Of Johnny Cash", track.getAlbum().getName());
assertNull(track.getAlbum().getCover());
assertEquals("02f8df4ad52d449caca8c6a25d2eca08", track.getAlbum().getId());
assertNull(track.getAlbum().getPopularity());
}
});
track = store.getTrack("cf2cd530980e450d855977ba0a80ec6e");
manager.send(new LoadTracks(store, track));
track.accept(new VisitorAdapter() {
@Override
public void visit(Track track) {
assertEquals("cf2cd530980e450d855977ba0a80ec6e", track.getId());
assertEquals("spotify:track:6iVTOPCmpABvG9jDZ2JozY", track.getSpotifyURI());
assertEquals("http://open.spotify.com/track/6iVTOPCmpABvG9jDZ2JozY", track.getHttpURL());
assertEquals("Two", track.getTitle());
assertEquals("95cdf93b035a5c568bc19981a9e618bd2f9a50bf", track.getCover());
assertEquals(1, track.getFiles().size());
assertEquals("ddc30e1090b43403cc0828db91300450a358a1a8", track.getFiles().get(0));
assertEquals(158293l, track.getLength().longValue());
assertTrue(track.getPopularity() > 0f);
assertEquals(2, track.getTrackNumber().intValue());
assertEquals(2007, track.getYear().intValue());
assertEquals("4f9873e19e5a4b4096c216c98bcdb010", track.getArtist().getId());
assertEquals("spotify:artist:2qc41rNTtdLK0tV3mJn2Pm", track.getArtist().getSpotifyURI());
assertEquals("http://open.spotify.com/artist/2qc41rNTtdLK0tV3mJn2Pm", track.getArtist().getHttpURL());
assertEquals("Ryan Adams", track.getArtist().getName());
assertNull(track.getArtist().getPopularity());
assertNull(track.getArtist().getPortrait());
// TODO: track.getArtist().getSimilarArtists();
assertEquals("spotify:album:2mLIJwfgNPGjpuKaN7njPm", track.getAlbum().getSpotifyURI());
assertEquals("http://open.spotify.com/album/2mLIJwfgNPGjpuKaN7njPm", track.getAlbum().getHttpURL());
assertEquals("Easy Tiger", track.getAlbum().getName());
assertNull(track.getAlbum().getCover());
assertEquals("4dc7cec0b8e441daaef85f46a915c7d4", track.getAlbum().getId());
assertNull(track.getAlbum().getPopularity());
}
});
track = store.getTrack("fc1f1b5860f04a739971fcad9c1cd634");
manager.send(new LoadTracks(store, track));
track.accept(new VisitorAdapter() {
@Override
public void visit(Track track) {
assertEquals("fc1f1b5860f04a739971fcad9c1cd634", track.getId());
assertEquals("spotify:track:7FKhuZtIPchBVNIhFnNL5W", track.getSpotifyURI());
assertEquals("http://open.spotify.com/track/7FKhuZtIPchBVNIhFnNL5W", track.getHttpURL());
assertEquals("Three", track.getTitle());
assertEquals("1946f99c0408e958f88c1811f1d9d92df0a4b16f", track.getCover());
assertEquals(1, track.getFiles().size());
assertEquals("6186903f7ffa0e579954fa42c537cebc06ac7427", track.getFiles().get(0));
assertEquals(229066l, track.getLength().longValue());
assertTrue(track.getPopularity() > 0f);
assertEquals(3, track.getTrackNumber().intValue());
assertEquals(1994, track.getYear().intValue());
assertEquals("db614c7060fc47baa7be732d88ae446d", track.getArtist().getId());
assertEquals("spotify:artist:6FXMGgJwohJLUSr5nVlf9X", track.getArtist().getSpotifyURI());
assertEquals("http://open.spotify.com/artist/6FXMGgJwohJLUSr5nVlf9X", track.getArtist().getHttpURL());
assertEquals("Massive Attack", track.getArtist().getName());
assertNull(track.getArtist().getPopularity());
assertNull(track.getArtist().getPortrait());
// TODO: track.getArtist().getSimilarArtists();
assertEquals("spotify:album:5CnZjFfPDmxOX7KnWLLqpC", track.getAlbum().getSpotifyURI());
assertEquals("http://open.spotify.com/album/5CnZjFfPDmxOX7KnWLLqpC", track.getAlbum().getHttpURL());
assertEquals("Protection", track.getAlbum().getName());
assertNull(track.getAlbum().getCover());
assertEquals("b8a09d31b4994b79a01f966b86cb9394", track.getAlbum().getId());
assertNull(track.getAlbum().getPopularity());
}
});
track = store.getTrack("7093f50c9ecf428eb780348c076f9f7f");
manager.send(new LoadTracks(store, track));
track.accept(new VisitorAdapter() {
@Override
public void visit(Track track) {
assertEquals("7093f50c9ecf428eb780348c076f9f7f", track.getId());
assertEquals("spotify:track:3qqKWUVfiLMrNPacFRzTzh", track.getSpotifyURI());
assertEquals("http://open.spotify.com/track/3qqKWUVfiLMrNPacFRzTzh", track.getHttpURL());
assertEquals("Four", track.getTitle());
assertEquals("2df174a97a577044edaa482b5eb198b5bc20dddb", track.getCover());
assertEquals(1, track.getFiles().size());
assertEquals("55473589cbccde7f9621fea833f38487f92f2892", track.getFiles().get(0));
assertEquals(240226l, track.getLength().longValue());
assertTrue(track.getPopularity() > 0f);
assertEquals(3, track.getTrackNumber().intValue());
assertEquals(1986, track.getYear().intValue());
assertEquals("f4d5d82d09124feda0633a2671f8c81a", track.getArtist().getId());
assertEquals("spotify:artist:7rZR0ugcLEhNrFYOrUtZii", track.getArtist().getSpotifyURI());
assertEquals("http://open.spotify.com/artist/7rZR0ugcLEhNrFYOrUtZii", track.getArtist().getHttpURL());
assertEquals("Miles Davis", track.getArtist().getName());
assertNull(track.getArtist().getPopularity());
assertNull(track.getArtist().getPortrait());
// TODO: track.getArtist().getSimilarArtists();
assertEquals("spotify:album:6eEhgZIrHftYRvgpAKJC2K", track.getAlbum().getSpotifyURI());
assertEquals("http://open.spotify.com/album/6eEhgZIrHftYRvgpAKJC2K", track.getAlbum().getHttpURL());
assertEquals("Miles Davis And The Jazz Giants", track.getAlbum().getName());
assertNull(track.getAlbum().getCover());
assertEquals("cce79af3bd864a799806a557877dda7a", track.getAlbum().getId());
assertNull(track.getAlbum().getPopularity());
}
});
track = store.getTrack("48daf12f96f84793a526b579aa4d1f66");
manager.send(new LoadTracks(store, track));
track.accept(new VisitorAdapter() {
@Override
public void visit(Track track) {
assertEquals("48daf12f96f84793a526b579aa4d1f66", track.getId());
assertEquals("spotify:track:2dtvgPd3vsotKXtGk4dWlg", track.getSpotifyURI());