AuditStorageProvider implements StorageProvider { @Override public List<String> getSpaceContentsChunked(String spaceId, String prefix, long maxResults, String marker) { List<String> spaceContents = target.getSpaceContentsChunked(spaceId, prefix, maxResults, marker); String action = AuditTask.ActionType.GET_SPACE_CONTENTS_CHUNKED.name(); submitReadTask(action, spaceId, AuditTask.NA, AuditTask.NA); return spaceContents; } AuditStorageProvider(StorageProvider target,
                                String account,
                                String storeId,
                                String storeType,
                                UserUtil userUtil,
                                TaskQueue taskQueue); @Override StorageProviderType getStorageProviderType(); @Override Iterator<String> getSpaces(); @Override Iterator<String> getSpaceContents(String spaceId, String prefix); @Override List<String> getSpaceContentsChunked(String spaceId, String prefix,
                                                long maxResults, String marker); @Override Map<String, String> getSpaceProperties(String spaceId); @Override Map<String, AclType> getSpaceACLs(String spaceId); @Override RetrievedContent getContent(String spaceId, String contentId); @Override RetrievedContent getContent(String spaceId, String contentId, String range); @Override Map<String, String> getContentProperties(String spaceId,
                                                    String contentId); @Override void createSpace(String spaceId); @Override void deleteSpace(String spaceId); @Override void setSpaceACLs(String spaceId, Map<String, AclType> spaceACLs); @Override String addContent(String spaceId,
                             String contentId,
                             String contentMimeType,
                             Map<String, String> userProperties,
                             long contentSize,
                             String contentChecksum,
                             InputStream content); @Override String copyContent(String sourceSpaceId, String sourceContentId,
                              String destSpaceId, String destContentId); @Override void deleteContent(String spaceId, String contentId); @Override void setContentProperties(String spaceId, String contentId,
                                     Map<String, String> contentProperties);  }
@Test public void testGetSpaceContentsChunked() throws Exception { Capture<Task> logCapture = mockReadLogCall(); EasyMock.expect( targetProvider.getSpaceContentsChunked(spaceId, prefix, maxResults, marker)) .andReturn(new ArrayList<String>()); replayAll(); provider.getSpaceContentsChunked(spaceId, prefix, maxResults, marker); verifyTask(logCapture.getValue(), AuditTask.ActionType.GET_SPACE_CONTENTS_CHUNKED.name()); }