@Test public void test_getDocumentByUploadId_docDoesNotExist() { IDocumentDatabaseClient partiallyMockedClient = new DocumentDatabaseClient() { @Override protected List<IDocument> searchByProperty(String propName, String propValue, Class<? extends IDocument> clazz) { return new ArrayList<IDocument>(); } }; List<IDocument> searchResult = partiallyMockedClient.getDocumentByUploadId(UPLOAD1_ID); Assert.assertEquals(0, searchResult.size()); }
@Override public List<IDocument> getDocumentByUploadId(String uploadId) { return getDocumentList("uploadId", uploadId); }
DocumentDatabaseClient extends DatabaseClient<IDocument> implements
        IDocumentDatabaseClient { @Override public List<IDocument> getDocumentByUploadId(String uploadId) { return getDocumentList("uploadId", uploadId); } }
DocumentDatabaseClient extends DatabaseClient<IDocument> implements
        IDocumentDatabaseClient { @Override public List<IDocument> getDocumentByUploadId(String uploadId) { return getDocumentList("uploadId", uploadId); }  }
DocumentDatabaseClient extends DatabaseClient<IDocument> implements
        IDocumentDatabaseClient { @Override public List<IDocument> getDocumentByUploadId(String uploadId) { return getDocumentList("uploadId", uploadId); }  @Override IDocument saveDocument(IDocument document); @Override IDocument getDocumentById(String id); @Override List<IDocument> getDocumentByUploadId(String uploadId); @Override List<IDocument> getDocumentsByUsername(String username); }
DocumentDatabaseClient extends DatabaseClient<IDocument> implements
        IDocumentDatabaseClient { @Override public List<IDocument> getDocumentByUploadId(String uploadId) { return getDocumentList("uploadId", uploadId); }  @Override IDocument saveDocument(IDocument document); @Override IDocument getDocumentById(String id); @Override List<IDocument> getDocumentByUploadId(String uploadId); @Override List<IDocument> getDocumentsByUsername(String username);  }