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 ; }
Returns all connections which correspond dbName of this filter and not for testing