|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectTestCase
org.jmx4odp.junitDiagnosticWorkers.JdbcClientTest
public class JdbcClientTest
Extend or implement this test class for tests of JDBC services
| Constructor Summary | |
|---|---|
JdbcClientTest()
Creates a new instance of HttpClient |
|
| Method Summary | |
|---|---|
static void |
assertJdbcConnected(java.sql.Connection con)
This will check the connection for metadata. |
static void |
assertJdbcIsCurrent(java.sql.Connection con,
java.lang.String sql,
int toleranceMs)
Uses the connection and sql to create a result set. |
static void |
assertJdbcRecordCountIs(java.sql.Connection con,
java.lang.String sql,
int count)
Uses the connection and sql to create a result set. |
static void |
assertJdbcRecordCountIs(java.sql.ResultSet rs,
int count)
Checks to see if the number of rows returned from the ResultSet is equal to the count |
static void |
assertJdbcRecordCountIsNoLessThan(java.sql.Connection con,
java.lang.String sql,
int count)
Uses the connection and sql to create a result set. |
static void |
assertJdbcRecordCountIsNoLessThan(java.sql.ResultSet rs,
int count)
Checks to see if the number of rows returned from the ResultSet is greater than or equal to the count |
static void |
assertJdbcRecordCountIsNoMoreThan(java.sql.Connection con,
java.lang.String sql,
int count)
Uses the connection and sql to create a result set. |
static void |
assertJdbcRecordCountIsNoMoreThan(java.sql.ResultSet rs,
int count)
Checks to see if the number of rows returned from the ResultSet is less than or equal to the count |
java.sql.Connection |
getConnection(java.lang.String resourceBundle)
The same as calling getConnectionHashtable(getConnectionParameters(resourceBundle)) |
java.sql.Connection |
getConnection(java.lang.String driverName,
java.lang.String url,
java.lang.String username,
java.lang.String password)
|
java.sql.Connection |
getConnectionHashtable(java.util.HashMap connectionParamters)
Uses a hashmap with the keyed strings of: driverName, url, username, and password to create a JDBC connection |
java.util.HashMap |
getConnectionParameters(java.lang.String resourceBundle)
Get the connection paramters from a resourceBundle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JdbcClientTest()
| Method Detail |
|---|
public java.util.HashMap getConnectionParameters(java.lang.String resourceBundle)
throws java.lang.Exception
java.lang.Exception
public java.sql.Connection getConnection(java.lang.String resourceBundle)
throws java.lang.Exception
java.lang.Exception
public java.sql.Connection getConnectionHashtable(java.util.HashMap connectionParamters)
throws java.lang.Exception
java.lang.Exception
public java.sql.Connection getConnection(java.lang.String driverName,
java.lang.String url,
java.lang.String username,
java.lang.String password)
throws java.lang.Exception
java.lang.Exceptionpublic static void assertJdbcConnected(java.sql.Connection con)
public static void assertJdbcRecordCountIs(java.sql.Connection con,
java.lang.String sql,
int count)
public static void assertJdbcRecordCountIsNoLessThan(java.sql.Connection con,
java.lang.String sql,
int count)
public static void assertJdbcRecordCountIsNoMoreThan(java.sql.Connection con,
java.lang.String sql,
int count)
public static void assertJdbcRecordCountIs(java.sql.ResultSet rs,
int count)
public static void assertJdbcRecordCountIsNoMoreThan(java.sql.ResultSet rs,
int count)
public static void assertJdbcRecordCountIsNoLessThan(java.sql.ResultSet rs,
int count)
public static void assertJdbcIsCurrent(java.sql.Connection con,
java.lang.String sql,
int toleranceMs)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||