public void testManyConnectionsUsingOneThread(){
  try {
    int maxConnections=getConnectionNum();
    openConnections(maxConnections);
    assertEquals("Incorrect number of created connections",maxConnections,vc.size());
  }
 catch (  Exception e) {
    fail("Unexpected Exception " + e.toString());
  }
}

public void testManyConnectionsUsingOneThread ( ) { try { int maxConnections = getConnectionNum ( ) ; openConnections ( maxConnections ) ; assertEquals ( "Incorrect number of created connections" , maxConnections , vc . size ( ) ) ; } catch ( Exception e ) { fail ( "Unexpected Exception " + e . toString ( ) ) ; } }
stresstest # testmanyconnectionsusingonethread ( ) . create many connections to the database using one thread .
