@@ -58,7 +58,7 @@ public class ClientEncryptionCustomEndpointTest {
58
58
// Delay loading this class because one of the expected classes is MongoCryptException, which should only be loaded after we
59
59
// determine that we're running on Java 8+ (since MongoCryptException is compiled with Java 8 target version)
60
60
private final String wrappedExceptionClassName ;
61
- private final String messageContainedInException ;
61
+ private final String messageContainedInException ;
62
62
63
63
public ClientEncryptionCustomEndpointTest (@ SuppressWarnings ("unused" ) final String name ,
64
64
final BsonDocument masterKey ,
@@ -154,7 +154,7 @@ public static Collection<Object[]> data() {
154
154
MongoClientException .class , "java.net.ConnectException" , "Connection refused" });
155
155
data .add (new Object []{"invalid amazon region in endpoint" ,
156
156
getDefaultMasterKey ().append ("endpoint" , new BsonString ("kms.us-east-2.amazonaws.com" )),
157
- MongoClientException .class , "com.mongodb.crypt.capi.MongoCryptException" , "us-east-1" });
157
+ MongoClientException .class , "com.mongodb.crypt.capi.MongoCryptException" , null });
158
158
data .add (new Object []{"invalid endpoint host" ,
159
159
getDefaultMasterKey ().append ("endpoint" , new BsonString ("example.com" )),
160
160
MongoClientException .class , "com.mongodb.crypt.capi.MongoCryptException" , "parse error" });
0 commit comments