use of ddf.catalog.content.operation.impl.ReadStorageRequestImpl in project ddf by codice.
the class FileSystemStorageProviderTest method testReadDeletedRemoteReference.
@Test(expected = StorageException.class)
public void testReadDeletedRemoteReference() throws Exception {
CreateStorageResponse createResponse = assertContentItem(TEST_INPUT_CONTENTS, NITF_MIME_TYPE, TEST_INPUT_FILENAME, Collections.singletonMap(Constants.STORE_REFERENCE_KEY, "http://testHostName:12345/test.txt"));
URI uri = new URI(createResponse.getCreatedContentItems().get(0).getUri());
provider.read(new ReadStorageRequestImpl(uri, Collections.emptyMap()));
}
Aggregations