public class StaticBasicParserPoolTest
extends junit.framework.TestCase
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
maxPoolSize
Max size of the pool we're using.
|
private org.opensaml.xml.parse.StaticBasicParserPool |
pool
Pool instance to test.
|
| Constructor and Description |
|---|
StaticBasicParserPoolTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
void |
testExplicitMultipleReturn()
Test for caller (illegally) returning a builder multiple times to pool.
|
void |
testFinalize()
Test issue reported in JXT-46 - a parser should not be checked into the pool multiple times
via the auto-checkin mechanism by the proxy finalize().
|
void |
testInitialization()
Test that initialization may only be called once, and pool properties
may not be changed after initialization.
|
void |
testMaxPoolSize()
Test that only maxPoolSize parsers are ever cached.
|
void |
testParserUseAfterReturn()
Test for a caller illegally using a parser proxy after it has been returned.
|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSameprivate org.opensaml.xml.parse.StaticBasicParserPool pool
int maxPoolSize
protected void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionpublic void testFinalize()
throws org.opensaml.xml.parse.XMLParserException
XMLParserExceptionInterruptedExceptionpublic void testExplicitMultipleReturn()
throws org.opensaml.xml.parse.XMLParserException
XMLParserExceptionpublic void testParserUseAfterReturn()
throws org.opensaml.xml.parse.XMLParserException,
URISyntaxException
XMLParserExceptionURISyntaxExceptionIOExceptionpublic void testMaxPoolSize()
throws org.opensaml.xml.parse.XMLParserException
XMLParserExceptionpublic void testInitialization()
Copyright © 1999-2014. All Rights Reserved.