Class HTTPResourceTest
- java.lang.Object
-
- net.shibboleth.ext.spring.resource.HTTPResourceTest
-
public class HTTPResourceTest extends Object
Test for HTTPResource.
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.http.client.HttpClientclientprivate StringexistsURLprivate StringnonExistsURL
-
Constructor Summary
Constructors Constructor Description HTTPResourceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextHandlerFailAfterTest()voidcontextHandlerFailBeforeTest()voidcontextHandlerNoopTest()private voidemptyDir(File dir)voidexistsTest()private GenericApplicationContextgetContext(String fileName, File theDir)voidsetupClient()voidspringLoadFileCache()voidspringLoadMemCache()voidtestCachedCache()voidtestCachedNoCache()voidtestCloseResponse()voidtestCompare()voidtestRelated()
-
-
-
Field Detail
-
existsURL
private final String existsURL
- See Also:
- Constant Field Values
-
nonExistsURL
private final String nonExistsURL
- See Also:
- Constant Field Values
-
client
private org.apache.http.client.HttpClient client
-
-
Method Detail
-
setupClient
@BeforeClass public void setupClient() throws Exception
- Throws:
Exception
-
existsTest
public void existsTest() throws IOException- Throws:
IOException
-
contextHandlerNoopTest
public void contextHandlerNoopTest() throws IOException- Throws:
IOException
-
contextHandlerFailBeforeTest
public void contextHandlerFailBeforeTest() throws IOException- Throws:
IOException
-
contextHandlerFailAfterTest
public void contextHandlerFailAfterTest() throws IOException- Throws:
IOException
-
testCompare
public void testCompare() throws IOException- Throws:
IOException
-
testRelated
public void testRelated() throws IOException- Throws:
IOException
-
testCachedNoCache
public void testCachedNoCache() throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
getContext
private GenericApplicationContext getContext(String fileName, File theDir)
-
springLoadMemCache
public void springLoadMemCache() throws IOException- Throws:
IOException
-
emptyDir
private void emptyDir(File dir)
-
springLoadFileCache
public void springLoadFileCache() throws IOException- Throws:
IOException
-
testCloseResponse
public void testCloseResponse()
-
-