public List<ConnectionSpecWrapper> getTestConnectionWrappers() { List<ConnectionSpecWrapper> allConnections = getConnectionSpecWrappers(); List<ConnectionSpecWrapper> result = new LinkedList<>(); for (ConnectionSpecWrapper connectionWrapper : allConnections) { if (connectionWrapper.isTesting()) result.add(connectionWrapper); } return result; } }
/** * Provides a list of all connection wrappers corresponding to a current environment. * * @return a list of all connection wrappers corresponding to a current environment. */ public static List<ConnectionSpecWrapper> getConnectionSpecWrappers() { return getConnectionSpecWrappers(Configuration.getEnv()); }
private static List<ConnectionSpecWrapper> getTestConnectionWrappers() { List<ConnectionSpecWrapper> allConnections = DbConfiguration.getConnectionSpecWrappers(); List<ConnectionSpecWrapper> result = new LinkedList<>(); for (ConnectionSpecWrapper connectionWrapper : allConnections) { if (connectionWrapper.isTesting()) result.add(connectionWrapper); } return result; } }
public List<ConnectionSpecWrapper> getTestConnectionWrappers() { List<ConnectionSpecWrapper> allConnections = getConnectionSpecWrappers(); List<ConnectionSpecWrapper> result = new LinkedList<>(); for (ConnectionSpecWrapper connectionWrapper : allConnections) { if (connectionWrapper.isTesting()) result.add(connectionWrapper); } return result; } }
/** * Provides a list of all connection wrappers corresponding to a current environment. * * @return a list of all connection wrappers corresponding to a current environment. */ public static List<ConnectionSpecWrapper> getConnectionSpecWrappers() { return getConnectionSpecWrappers(Configuration.getEnv()); }
/** * Returns all connections which correspond dbName of this filter and not for testing * * @return all connections which correspond dbName of this filter and not for testing. */ private List<ConnectionSpecWrapper> getConnectionWrappers() { List<ConnectionSpecWrapper> allConnections = DbConfiguration.getConnectionSpecWrappers(); List<ConnectionSpecWrapper> result = new LinkedList<>(); for (ConnectionSpecWrapper connectionWrapper : allConnections) { if (!connectionWrapper.isTesting() && (dbName == null || dbName.equals(connectionWrapper.getDbName()))) result.add(connectionWrapper); } return result; } }