src/test/java/com/tzavellas/poolng/DefaultConnectionFactoryTest.java
@Test 
	public void connections_returned_from_HsqldbConnectionFactory_support_isValid() throws SQLException {
		info = new ConnectionInfo(HSQL_CLASS, HSQL_MEM_URL, "sa", "", new Properties());
		factory = new HsqldbConnectionFactory(new DefaultConnectionFactory(info));
		Connection c = factory.create();
		assertTrue(c.isValid(1)); 
		c.close();
		assertTrue(c.isClosed());
		assertFalse(c.isValid(1)); 
	}
/*
	 * Tests test-helper class HsqldbConnectionFactory not actual code.
	 */
Tests test-helper class HsqldbConnectionFactory not actual code.
Tests test - helper class HsqldbConnectionFactory not actual code .
@Test 
	public void connections_returned_from_HsqldbConnectionFactory_support_isValid() throws SQLException {
		info = new ConnectionInfo(HSQL_CLASS, HSQL_MEM_URL, "sa", "", new Properties());
		factory = new HsqldbConnectionFactory(new DefaultConnectionFactory(info));
		Connection c = factory.create();
		assertTrue(c.isValid(1)); 
		c.close();
		assertTrue(c.isClosed());
		assertFalse(c.isValid(1)); 
	}
@ Test public void connections_returned_from_HsqldbConnectionFactory_support_isValid ( ) throws SQLException { info = new ConnectionInfo ( HSQL_CLASS , HSQL_MEM_URL , "sa" , "" , new Properties ( ) ) ; factory = new HsqldbConnectionFactory ( new DefaultConnectionFactory ( info ) ) ; Connection c = factory . create ( ) ; assertTrue ( c . isValid ( 1 ) ) ; c . close ( ) ; assertTrue ( c . isClosed ( ) ) ; assertFalse ( c . isValid ( 1 ) ) ; }
Tests test-helper class HsqldbConnectionFactory not actual code.
Tests test - helper class HsqldbConnectionFactory not actual code .