Fix test properties
@@ -60,7 +60,8 @@ public class CustomTrustManagerTest extends AbstractTest {
@Test
public void testWithInvalidTrustManager() throws Exception {
String url = TestUtils.removeProperty(connectionString, Constants.TRUST_SERVER_CERTIFICATE);
- url = url + "encrypt=true;trustManagerClass=" + InvalidTrustManager.class.getName();
+ url = url + "encrypt=true;trustServerCertificate=false;trustManagerClass="
+ + InvalidTrustManager.class.getName();
try (Connection con = PrepUtil.getConnection(url)) {
fail(TestResource.getResource("R_expectedFailPassed"));
} catch (SQLException e) {
