@Test public void playlist() { List<Playlist.Track> tracks = new ArrayList<>(); tracks.add(new Playlist.Track()); Playlist playlist = new Playlist(tracks, TEST_VERSION); assertEquals(TEST_VERSION, playlist.getVersion()); assertEquals(tracks, playlist.getTracks()); assertEquals(1, playlist.getTracks().size()); }
Playlist(final List<Track> tracks, final int version) { this.tracks = tracks; this.version = version; }
Playlist { Playlist(final List<Track> tracks, final int version) { this.tracks = tracks; this.version = version; } }
Playlist { Playlist(final List<Track> tracks, final int version) { this.tracks = tracks; this.version = version; } Playlist(final List<Track> tracks, final int version); }
Playlist { Playlist(final List<Track> tracks, final int version) { this.tracks = tracks; this.version = version; } Playlist(final List<Track> tracks, final int version); List<Track> getTracks(); int getVersion(); @Override String toString(); }
Playlist { Playlist(final List<Track> tracks, final int version) { this.tracks = tracks; this.version = version; } Playlist(final List<Track> tracks, final int version); List<Track> getTracks(); int getVersion(); @Override String toString();  }