@Test public void testCreateRdsViewWhenConnectionUserNameHasSuffix() { String connectionUrl = "jdbc:postgresql: RDSConfig rdsConfig = createRdsConfig(connectionUrl); rdsConfig.setConnectionUserName(rdsConfig.getConnectionUserName() + "@some-rds"); RdsView underTest = new RdsView(rdsConfig); Assert.assertEquals("admin@some-rds", underTest.getConnectionUserName()); }
public String getConnectionUserName() { return connectionUserName; }
RdsView { public String getConnectionUserName() { return connectionUserName; } }
RdsView { public String getConnectionUserName() { return connectionUserName; } RdsView(RDSConfig rdsConfig); }
RdsView { public String getConnectionUserName() { return connectionUserName; } RdsView(RDSConfig rdsConfig); String getConnectionURL(); String getConnectionUserName(); String getConnectionPassword(); String getDatabaseName(); String getDatabaseType(); String getHost(); String getConnectionDriver(); String getLowerCaseDatabaseEngine(); String getDatabaseEngine(); String getSubprotocol(); String getPort(); DatabaseVendor getDatabaseVendor(); String getFancyName(); String getDisplayName(); String getClusterManagerVendor(); String getVendor(); String getUserName(); String getPassword(); String getName(); String getUpperCaseDatabaseEngine(); String getHostWithPortWithJdbc(); String getWithoutJDBCPrefix(); String getConnectionString(); }
RdsView { public String getConnectionUserName() { return connectionUserName; } RdsView(RDSConfig rdsConfig); String getConnectionURL(); String getConnectionUserName(); String getConnectionPassword(); String getDatabaseName(); String getDatabaseType(); String getHost(); String getConnectionDriver(); String getLowerCaseDatabaseEngine(); String getDatabaseEngine(); String getSubprotocol(); String getPort(); DatabaseVendor getDatabaseVendor(); String getFancyName(); String getDisplayName(); String getClusterManagerVendor(); String getVendor(); String getUserName(); String getPassword(); String getName(); String getUpperCaseDatabaseEngine(); String getHostWithPortWithJdbc(); String getWithoutJDBCPrefix(); String getConnectionString(); static final String WITHOUT_JDBC_PREFIX_REGEX; }