ds.setUser(null);
ds.setPassword(null);
ds = null;
// now with ConnectionPoolDataSource
EmbeddedConnectionPoolDataSource cpds = new EmbeddedConnectionPoolDataSource();
System.out.println("ConnectionPoolDataSource - EMPTY");
dsConnectionRequests((ConnectionPoolDataSource)cpds);
System.out.println("ConnectionPoolDataSource - connectionAttributes=databaseName=wombat");
cpds.setConnectionAttributes("databaseName=wombat");
dsConnectionRequests((ConnectionPoolDataSource)cpds);
cpds.setConnectionAttributes(null);
System.out.println("ConnectionPoolDataSource - attributesAsPassword=true");
cpds.setAttributesAsPassword(true);
dsConnectionRequests((ConnectionPoolDataSource)cpds);
cpds.setAttributesAsPassword(false);
// ensure the DS property password is not treated as a set of attributes.
System.out.println("ConnectionPoolDataSource - attributesAsPassword=true, user=fred, password=databaseName=wombat;password=wilma");
cpds.setAttributesAsPassword(true);
cpds.setUser("fred");
cpds.setPassword("databaseName=wombat;password=wilma");
dsConnectionRequests((ConnectionPoolDataSource)cpds);
cpds.setAttributesAsPassword(false);
cpds.setUser(null);
cpds.setPassword(null);
cpds = null;
// now with XADataSource
EmbeddedXADataSource xads = new EmbeddedXADataSource();
System.out.println("XADataSource - EMPTY");