content: /*
   * Copyright The OpenTelemetry Authors
   * SPDX-License-Identifier: Apache-2.0
   */
  
  package io.opentelemetry.instrumentation.jdbc.datasource;
  
  import io.opentelemetry.instrumentation.jdbc.TestConnection;
  import java.io.PrintWriter;
  import java.sql.Connection;
  import java.sql.SQLException;
  import java.sql.SQLFeatureNotSupportedException;
  import java.util.logging.Logger;
  import javax.sql.DataSource;
  
  class TestDataSource implements DataSource {
  
    @Override
    public Connection getConnection() {
      return new TestConnection();
    }
  
    @Override
    public Connection getConnection(String username, String password) {
      return new TestConnection();
    }
  
    @Override
    public PrintWriter getLogWriter() {
      return null;
    }
  
    @Override
    public void setLogWriter(PrintWriter out) {}
  
    @Override
    public void setLoginTimeout(int seconds) {}
  
    @Override
    public int getLoginTimeout() {
      return 0;
    }
  
    @Override
    public Logger getParentLogger() throws SQLFeatureNotSupportedException {
      return null;
    }
  
    @Override
    public <T> T unwrap(Class<T> iface) throws SQLException {
      return null;
    }
  
    @Override
    public boolean isWrapperFor(Class<?> iface) throws SQLException {
      return false;
    }
  }
  