public class FcrepoResponseTest extends Object
| Constructor and Description |
|---|
FcrepoResponseTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testClosableReleasesResources()
Demonstrates that response objects are not
close()ed by default, that the state of
FcrepoResponse.closed is set appropriately when FcrepoResponse.close() is invoked under normal
(i.e. |
void |
testClosableSuppressedExceptions()
Demonstrates that if an
IOException is thrown by FcrepoResponse.close(), and an
exception is thrown inside of a client's try block, the IOException from the close()
method is properly appended as a suppressed exception. |
void |
testContentDisposition() |
void |
testIdiomaticInvokation()
Demonstrates a successful idiomatic usage with try-with-resources
|
void |
testIdiomaticInvokationThrowsException()
Demonstrates idiomatic exception handling with try-with-resources
|
void |
testLocationFromDescribedBy() |
void |
testLocationOverDescribedBy() |
void |
testResponse() |
public FcrepoResponseTest()
public void testResponse() throws IOException
IOExceptionpublic void testClosableReleasesResources() throws IOException
close()ed by default, that the state of
FcrepoResponse.closed is set appropriately when FcrepoResponse.close() is invoked under normal
(i.e. no exception thrown during close()) conditions, and that InputStream.close() is not
invoked repeatedly after the FcrepoResponse has been close()ed.IOException - if something exceptional happenspublic void testClosableSuppressedExceptions() throws IOException
IOException is thrown by FcrepoResponse.close(), and an
exception is thrown inside of a client's try block, the IOException from the close()
method is properly appended as a suppressed exception.IOException - if something exceptional happenspublic void testIdiomaticInvokation() throws org.fcrepo.client.FcrepoOperationFailedException
FcrepoOperationFailedException - if something exceptional happenspublic void testIdiomaticInvokationThrowsException() throws Exception
Exception - if something exceptional happenspublic void testLocationFromDescribedBy() throws Exception
Exceptionpublic void testLocationOverDescribedBy() throws Exception
Exceptionpublic void testContentDisposition() throws Exception
ExceptionCopyright © 2013-2016 DuraSpace, Inc.. All Rights Reserved.