test both arguments of getConnection

Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com>
This commit is contained in:
Chad Bentz
2023-02-15 18:26:56 -05:00
committed by GitHub
parent b0c8992eef
commit 2f576a4fe9

View File

@@ -4,6 +4,7 @@ public class HardcodedMSSQLCredentials {
public static void main(SQLServerDataSource ds) throws Exception {
ds.setUser("Username"); // $ HardcodedCredentialsApiCall
ds.setPassword("password"); // $ HardcodedCredentialsApiCall
ds.getConnection("Username", "password"); // $ HardcodedCredentialsApiCall
ds.getConnection("Username", null); // $ HardcodedCredentialsApiCall
ds.getConnection(null, "password"); // $ HardcodedCredentialsApiCall
}
}