PentahoPoolDataSourceConnectionProvider implements ConnectionProvider { public void setUsername( final String username ) { this.username = username; } PentahoPoolDataSourceConnectionProvider(); @Override Connection createConnection( final String user, final String password ); String getName(); void setName( final String name ); String getUsername(); void setUsername( final String username ); String getPassword(); void setPassword( final String password ); Object getConnectionHash();  }
@Test public void testSetUsername() throws Exception { Assert.assertNull( provider.getUsername() ); provider.setUsername( "username" ); Assert.assertEquals( "username", provider.getUsername() ); }