public class ConnectionManagementTest extends Object
| Modifier and Type | Field and Description |
|---|---|
org.mockserver.junit.MockServerRule |
mockServerRule
Starts a mock HTTP server on a free port
|
| Constructor and Description |
|---|
ConnectionManagementTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
connectionNotReleasedWhenEntityBodyIgnored()
Demonstrates that are connections are NOT released if the user of the FcrepoClient does not handle the response
body at all.
|
void |
connectionReleasedOnEmptyBody()
Demonstrates that are connections are released when the FcrepoClient receives an empty response body.
|
void |
connectionReleasedOnEntityBodyClose()
Demonstrates that HTTP connections are released when the user of the FcrepoClient closes the HTTP entity body.
|
void |
connectionReleasedOnEntityBodyRead()
Demonstrates that are connections are released when the user of the FcrepoClient reads the HTTP entity body.
|
void |
connectionReleasedOnException()
Demonstrates that HTTP connections are released when the FcrepoClient throws an exception.
|
void |
setUp() |
void |
tearDown() |
public org.mockserver.junit.MockServerRule mockServerRule
public ConnectionManagementTest()
public void setUp()
public void tearDown() throws IOException
IOExceptionpublic void connectionReleasedOnException()
public void connectionReleasedOnEntityBodyClose()
public void connectionReleasedOnEntityBodyRead()
public void connectionNotReleasedWhenEntityBodyIgnored()
public void connectionReleasedOnEmptyBody()
Copyright © 2013–2017 DuraSpace, Inc.. All rights reserved.