Deck implements Parcelable { public String getCreationDateString() { Date date = new Date(timestamp); SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yy", Locale.US); return dateFormat.format(date); } Deck(String title, String author, String externalId, long dbId, long timestamp,
                boolean locked, String sourceLanguage, Dictionary[] dictionaries);  Deck(String title, String author, String externalId, long timestamp, boolean locked,
                String sourceLanguage);  Deck(); protected  Deck(Parcel in); String getTitle(); String getAuthor(); String getExternalId(); long getDbId(); long getTimestamp(); String getCreationDateString(); String getDeckInformation(); boolean isLocked(); String getSourceLanguageIso(); String getSourceLanguageName(); String getDestinationLanguagesForDisplay(); void setTitle(String title); void setSourceLanguage(String language); void setAuthor(String author); JSONObject toJSON(String exportedDeckName); Map<String, Boolean> getAudioFilePaths(); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); static final Creator<Deck> CREATOR; }
@Test public void getCreationDate_shouldFormatCreationDate() { assertThat(deck.getCreationDateString(), is("02/08/16")); }