|
|||||||||
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.apache.ojb.broker.sqlcount.AbstractCountTest
provides methods to count the number statements.
Field Summary | |
protected Logger |
logger
|
Constructor Summary | |
AbstractCountTest()
|
Method Summary | |
protected void |
assertStmtCount(java.lang.String msg,
int expected)
assert that the number of statements issued since the last call of resetStmtCount() . |
protected void |
assertStmtCount(java.lang.String msg,
int minExpected,
int maxExpected)
assert that the number of statements issued since the last call of resetStmtCount() . |
protected void |
checkP6spyEnabled(PBKey pbKey)
fail ifF the specified PersistenceBroker does not use P6Spy. |
protected void |
logStmtCount(java.lang.String msg)
|
protected void |
resetStmtCount()
start count SQL statements |
protected void |
setUp()
sets the spy.properties file name. |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString |
Methods inherited from class junit.framework.Assert |
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, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected final Logger logger
Constructor Detail |
public AbstractCountTest()
Method Detail |
protected void setUp() throws java.lang.Exception
java.lang.Exception
protected final void resetStmtCount()
protected final void assertStmtCount(java.lang.String msg, int minExpected, int maxExpected)
resetStmtCount()
.
is between two specified numbers.
msg
- short description of the actions since the last call of resetStmtCount()
.protected final void assertStmtCount(java.lang.String msg, int expected)
resetStmtCount()
.
is equal to a specified number.
msg
- short description of the actions since the last call of resetStmtCount()
.protected final void logStmtCount(java.lang.String msg)
protected final void checkP6spyEnabled(PBKey pbKey)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |