@Test public void shouldHandleSerializedDataOfWrongType() throws Exception { Media media = new Media(); media.thumb_image = fileToBytes(Fixtures.VECTOR_SERIALIZED); assertThat(media.getFile()).isNull(); }
public File getFile() { MediaData md = getMediaData(); return md == null ? null : md.getFile(); }
Media { public File getFile() { MediaData md = getMediaData(); return md == null ? null : md.getFile(); } }
Media { public File getFile() { MediaData md = getMediaData(); return md == null ? null : md.getFile(); } Media();  Media(Cursor c); }
Media { public File getFile() { MediaData md = getMediaData(); return md == null ? null : md.getFile(); } Media();  Media(Cursor c); byte[] getRawData(); String getMimeType(); String getUrl(); int getSize(); File getFile(); long getFileSize(); @Override String toString(); }
Media { public File getFile() { MediaData md = getMediaData(); return md == null ? null : md.getFile(); } Media();  Media(Cursor c); byte[] getRawData(); String getMimeType(); String getUrl(); int getSize(); File getFile(); long getFileSize(); @Override String toString();  }