@Test public void testSetUpNoDbName() throws ClassNotFoundException, SQLException { MySqlDatabase mySqlDatabase = new MySqlDatabase(); final SQLInputs sqlInputs = SQLInputs.builder().build(); sqlInputs.setDbName(EMPTY); sqlInputs.setDbServer(DB_SERVER); sqlInputs.setDbPort(DB_PORT); final List<String> dbUrls = mySqlDatabase.setUp(sqlInputs); assertEquals("jdbc:mysql: assertEquals(1, dbUrls.size()); }
@Override public List<String> setUp(@NotNull final SQLInputs sqlInputs) { loadClassForName("com.mysql.jdbc.Driver"); final String connectionString = getConnectionString(sqlInputs); final List<String> dbUrls = getDbUrls(sqlInputs.getDbUrl()); dbUrls.add(connectionString); return dbUrls; }
MySqlDatabase implements SqlDatabase { @Override public List<String> setUp(@NotNull final SQLInputs sqlInputs) { loadClassForName("com.mysql.jdbc.Driver"); final String connectionString = getConnectionString(sqlInputs); final List<String> dbUrls = getDbUrls(sqlInputs.getDbUrl()); dbUrls.add(connectionString); return dbUrls; } }
MySqlDatabase implements SqlDatabase { @Override public List<String> setUp(@NotNull final SQLInputs sqlInputs) { loadClassForName("com.mysql.jdbc.Driver"); final String connectionString = getConnectionString(sqlInputs); final List<String> dbUrls = getDbUrls(sqlInputs.getDbUrl()); dbUrls.add(connectionString); return dbUrls; }  }
MySqlDatabase implements SqlDatabase { @Override public List<String> setUp(@NotNull final SQLInputs sqlInputs) { loadClassForName("com.mysql.jdbc.Driver"); final String connectionString = getConnectionString(sqlInputs); final List<String> dbUrls = getDbUrls(sqlInputs.getDbUrl()); dbUrls.add(connectionString); return dbUrls; }  @Override List<String> setUp(@NotNull final SQLInputs sqlInputs); }
MySqlDatabase implements SqlDatabase { @Override public List<String> setUp(@NotNull final SQLInputs sqlInputs) { loadClassForName("com.mysql.jdbc.Driver"); final String connectionString = getConnectionString(sqlInputs); final List<String> dbUrls = getDbUrls(sqlInputs.getDbUrl()); dbUrls.add(connectionString); return dbUrls; }  @Override List<String> setUp(@NotNull final SQLInputs sqlInputs);  }