|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.logicalcobwebs.proxool.AbstractProxoolTest
org.logicalcobwebs.proxool.configuration.JAXPConfiguratorTest
Tests that the JAXPConfgiuration works in various scenarios.
This is also a test of the XMLConfigurator
, as it is delegated to.
Field Summary |
Fields inherited from class org.logicalcobwebs.proxool.AbstractProxoolTest |
|
Fields inherited from class junit.framework.TestCase |
|
Constructor Summary | |
JAXPConfiguratorTest(java.lang.String name)
|
Method Summary | |
private static java.lang.String |
getWorkingDirectoryUrl()
|
void |
testNoNamspaces()
Test that the confguration succeds and that all expected properties has been received by Proxool. |
void |
testValidiation()
Test that the confguration succeds and that all expected properties has been received by Proxool, and that validiation succceds. |
void |
testValidiationFailure()
Test that the confguration fails when validiation is turned on and the given xml is not valid. |
void |
testWithAlias()
Test that we can retrieve a conncetion using the alias after registration |
void |
testWithNamspaces()
Test that the confguration succeds and that all expected properties has been received by Proxool. |
Methods inherited from class org.logicalcobwebs.proxool.AbstractProxoolTest |
setUp, tearDown |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JAXPConfiguratorTest(java.lang.String name)
TestCase.TestCase(java.lang.String)
Method Detail |
public void testNoNamspaces() throws ProxoolException, java.sql.SQLException
ProxoolException
- if the configuration fails.
java.sql.SQLException
- if ProxoolFacade operation fails.public void testWithNamspaces() throws ProxoolException, java.sql.SQLException
ProxoolException
- if the configuration fails.
java.sql.SQLException
- if ProxoolFacade operation fails.public void testValidiation() throws ProxoolException, java.sql.SQLException, java.io.FileNotFoundException
ProxoolException
- if the configuration fails.
java.sql.SQLException
- if ProxoolFacade operation fails.
java.io.FileNotFoundException
- if the xml file is not found.public void testWithAlias() throws ProxoolException, java.sql.SQLException, java.io.FileNotFoundException
ProxoolException
- if the configuration fails.
java.sql.SQLException
- if ProxoolFacade operation fails.
java.io.FileNotFoundException
- if the xml file is not found.public void testValidiationFailure() throws java.sql.SQLException, java.io.FileNotFoundException, ProxoolException
java.sql.SQLException
- if ProxoolFacade operation fails.
java.io.FileNotFoundException
- if the xml file is not found.
ProxoolException
private static java.lang.String getWorkingDirectoryUrl()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |