@Test public void testSetUpConnectionNetcool() throws Exception { expectedEx.expect(RuntimeException.class); sqlInputs.setDbPort(30); expectedEx.expectMessage("Could not locate either jconn2.jar or jconn3.jar file in the classpath!"); sqlInputs.setDbType(NETCOOL_DB_TYPE); sqlInputs.setDbName(""); connectionServiceSpy.setUpConnection(sqlInputs); }
public Connection setUpConnection(@NotNull final SQLInputs sqlInputs) throws SQLException { dbConnectionManager = DBConnectionManager.getInstance(); final List<String> connectionUrls = getConnectionUrls(sqlInputs); return obtainConnection(connectionUrls, sqlInputs); }
ConnectionService { public Connection setUpConnection(@NotNull final SQLInputs sqlInputs) throws SQLException { dbConnectionManager = DBConnectionManager.getInstance(); final List<String> connectionUrls = getConnectionUrls(sqlInputs); return obtainConnection(connectionUrls, sqlInputs); } }
ConnectionService { public Connection setUpConnection(@NotNull final SQLInputs sqlInputs) throws SQLException { dbConnectionManager = DBConnectionManager.getInstance(); final List<String> connectionUrls = getConnectionUrls(sqlInputs); return obtainConnection(connectionUrls, sqlInputs); }  }
ConnectionService { public Connection setUpConnection(@NotNull final SQLInputs sqlInputs) throws SQLException { dbConnectionManager = DBConnectionManager.getInstance(); final List<String> connectionUrls = getConnectionUrls(sqlInputs); return obtainConnection(connectionUrls, sqlInputs); }  Connection setUpConnection(@NotNull final SQLInputs sqlInputs); List<String> getConnectionUrls(@NotNull final SQLInputs sqlInputs); }
ConnectionService { public Connection setUpConnection(@NotNull final SQLInputs sqlInputs) throws SQLException { dbConnectionManager = DBConnectionManager.getInstance(); final List<String> connectionUrls = getConnectionUrls(sqlInputs); return obtainConnection(connectionUrls, sqlInputs); }  Connection setUpConnection(@NotNull final SQLInputs sqlInputs); List<String> getConnectionUrls(@NotNull final SQLInputs sqlInputs);  }