org.opensaml.xml.parse
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.
|
assertEquals, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, tearDown, toString
private org.opensaml.xml.parse.StaticBasicParserPool pool
int maxPoolSize
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public void testFinalize() throws org.opensaml.xml.parse.XMLParserException
XMLParserException
InterruptedException
public void testExplicitMultipleReturn() throws org.opensaml.xml.parse.XMLParserException
XMLParserException
public void testParserUseAfterReturn() throws org.opensaml.xml.parse.XMLParserException, URISyntaxException
XMLParserException
URISyntaxException
IOException
public void testMaxPoolSize() throws org.opensaml.xml.parse.XMLParserException
XMLParserException
public void testInitialization()
Copyright © 1999-2014 JBoss by Red Hat. All Rights Reserved.