|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.logicalcobwebs.proxool.TestHelper
public class TestHelper
Helper for all tests
Field Summary | |
---|---|
private static Log |
LOG
|
Constructor Summary | |
---|---|
TestHelper()
|
Method Summary | |
---|---|
static java.util.Properties |
buildCompleteAlternativeProperties()
Builds a complete set of proxool properties, with all values set to something different than the default vaule. |
static java.lang.String |
buildProxoolUrl(java.lang.String alias)
Build a valid Proxool URL |
static java.lang.String |
buildProxoolUrl(java.lang.String alias,
java.lang.String driver,
java.lang.String delegateUrl)
Build a valid Proxool URL |
private static void |
checkProperty(java.lang.String name,
int correctValue,
int candidateValue)
|
private static void |
checkProperty(java.lang.String name,
java.lang.String correctValue,
java.lang.String candidateValue)
|
static void |
equalsCompleteAlternativeProperties(ConnectionPoolDefinitionIF connectionPoolDefinition)
Test that the given ConnectionPoolDefinitionIF contains all the properties as defined in buildCompleteAlternativeProperties() . |
static java.sql.Connection |
getDirectConnection()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Log LOG
Constructor Detail |
---|
public TestHelper()
Method Detail |
---|
public static java.util.Properties buildCompleteAlternativeProperties()
public static void equalsCompleteAlternativeProperties(ConnectionPoolDefinitionIF connectionPoolDefinition) throws ProxoolException
buildCompleteAlternativeProperties()
.
connectionPoolDefinition
- the ConnectionPoolDefinitionIF to be tested.
ProxoolException
- if any properties are missing or have the wrong value.private static void checkProperty(java.lang.String name, java.lang.String correctValue, java.lang.String candidateValue) throws ProxoolException
ProxoolException
private static void checkProperty(java.lang.String name, int correctValue, int candidateValue) throws ProxoolException
ProxoolException
public static java.lang.String buildProxoolUrl(java.lang.String alias, java.lang.String driver, java.lang.String delegateUrl)
alias
- identifies the pooldriver
- the delegate driverdelegateUrl
- the url to send to the delegate driver
public static java.lang.String buildProxoolUrl(java.lang.String alias)
alias
- identifies the pool
public static java.sql.Connection getDirectConnection() throws java.lang.ClassNotFoundException, java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |