@Test void testToStringEmpty() { this.playlist = new PlaylistEntity(); assertThat(this.playlist.toString(), equalTo("No playlist data available")); }
@Override public String toString() { StringBuilder stringbuilder = new StringBuilder(); if (getName() != null) { if (this.playlistCreator != null) { return stringbuilder.append(getName()).append(" created by: ").append(this.playlistCreator).toString(); } return stringbuilder.append(getName()).toString(); } return "No playlist data available"; }
PlaylistEntity extends Item { @Override public String toString() { StringBuilder stringbuilder = new StringBuilder(); if (getName() != null) { if (this.playlistCreator != null) { return stringbuilder.append(getName()).append(" created by: ").append(this.playlistCreator).toString(); } return stringbuilder.append(getName()).toString(); } return "No playlist data available"; } }
PlaylistEntity extends Item { @Override public String toString() { StringBuilder stringbuilder = new StringBuilder(); if (getName() != null) { if (this.playlistCreator != null) { return stringbuilder.append(getName()).append(" created by: ").append(this.playlistCreator).toString(); } return stringbuilder.append(getName()).toString(); } return "No playlist data available"; }  }
PlaylistEntity extends Item { @Override public String toString() { StringBuilder stringbuilder = new StringBuilder(); if (getName() != null) { if (this.playlistCreator != null) { return stringbuilder.append(getName()).append(" created by: ").append(this.playlistCreator).toString(); } return stringbuilder.append(getName()).toString(); } return "No playlist data available"; }  String getPlaylistCreator(); void setPlaylistCreator(String playlistCreator); @Override String toString(); }
PlaylistEntity extends Item { @Override public String toString() { StringBuilder stringbuilder = new StringBuilder(); if (getName() != null) { if (this.playlistCreator != null) { return stringbuilder.append(getName()).append(" created by: ").append(this.playlistCreator).toString(); } return stringbuilder.append(getName()).toString(); } return "No playlist data available"; }  String getPlaylistCreator(); void setPlaylistCreator(String playlistCreator); @Override String toString();  }