diff --git a/src/test/java/com/microsoft/sqlserver/jdbc/KerberosTest.java b/src/test/java/com/microsoft/sqlserver/jdbc/KerberosTest.java index 3d3d44070..5bbccc097 100644 --- a/src/test/java/com/microsoft/sqlserver/jdbc/KerberosTest.java +++ b/src/test/java/com/microsoft/sqlserver/jdbc/KerberosTest.java @@ -98,6 +98,9 @@ private static void createKerberosConnection(String connectionString) throws Exc @Test public void testKerberosConnectionWithDefaultJaasConfig() { try { + // Set a mock JAAS configuration using the existing method + overwriteJaasConfig(); + String connectionString = connectionStringKerberos + ";useDefaultJaasConfig=true;"; createKerberosConnection(connectionString);