|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.cjdbc.scenario.tools.mock.MockDriver
org.objectweb.cjdbc.scenario.standalone.connection.AbstractPoolConnectionManagerTest.MyMockDriver
Mock driver. The method connect()
will return only a limited
number of connections, specified by maxConnectionNumber
. If
more connections are requested, an exception is thrown.
Field Summary | |
private MockConnection2[] |
mockConnections
Expected connections. |
Fields inherited from class org.objectweb.cjdbc.scenario.tools.mock.MockDriver |
|
Constructor Summary | |
AbstractPoolConnectionManagerTest.MyMockDriver(int maxConnectionNumber)
Creates a new MyMockDriver instance. |
Method Summary | |
void |
verify()
Verifies that all connections are closed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private MockConnection2[] mockConnections
Constructor Detail |
public AbstractPoolConnectionManagerTest.MyMockDriver(int maxConnectionNumber)
MyMockDriver
instance.
maxConnectionNumber
- maximum number of connection allowed by the
driver.Method Detail |
public void verify()
verify
in class MockDriver
MockDriver.verify()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |