@@ -143,6 +143,10 @@ public static void applyCustomizations(final TestDef def) {
143
143
.test ("crud" , "findOneAndDelete-hint-unacknowledged" , "Unacknowledged findOneAndDelete with hint string on 4.4+ server" )
144
144
.test ("crud" , "findOneAndDelete-hint-unacknowledged" , "Unacknowledged findOneAndDelete with hint document on 4.4+ server" );
145
145
146
+ def .skipNoncompliant ("https://jira.mongodb.org/browse/JAVA-5838" )
147
+ .when (() -> def .isReactive () && UnifiedTest .Language .KOTLIN .equals (def .getLanguage ()))
148
+ .file ("crud" , "findOne" );
149
+
146
150
// gridfs
147
151
148
152
def .skipDeprecated ("contentType is deprecated in GridFS spec, and 4.x Java driver no longer supports it" )
@@ -256,24 +260,28 @@ public static void applyCustomizations(final TestDef def) {
256
260
257
261
private UnifiedTestModifications () {}
258
262
259
- public static TestDef testDef (final String dir , final String file , final String test , final boolean reactive ) {
260
- return new TestDef (dir , file , test , reactive );
263
+ public static TestDef testDef (final String dir , final String file , final String test , final boolean reactive ,
264
+ final UnifiedTest .Language language ) {
265
+ return new TestDef (dir , file , test , reactive , language );
261
266
}
262
267
263
268
public static final class TestDef {
269
+
264
270
private final String dir ;
265
271
private final String file ;
266
272
private final String test ;
267
273
private final boolean reactive ;
274
+ private final UnifiedTest .Language language ;
268
275
269
276
private final List <Modifier > modifiers = new ArrayList <>();
270
277
private Function <Throwable , Boolean > matchesThrowable ;
271
278
272
- private TestDef (final String dir , final String file , final String test , final boolean reactive ) {
279
+ private TestDef (final String dir , final String file , final String test , final boolean reactive , final UnifiedTest . Language language ) {
273
280
this .dir = assertNotNull (dir );
274
281
this .file = assertNotNull (file );
275
282
this .test = assertNotNull (test );
276
283
this .reactive = reactive ;
284
+ this .language = assertNotNull (language );
277
285
}
278
286
279
287
/**
@@ -354,6 +362,10 @@ public boolean isReactive() {
354
362
return reactive ;
355
363
}
356
364
365
+ public UnifiedTest .Language getLanguage () {
366
+ return language ;
367
+ }
368
+
357
369
public boolean wasAssignedModifier (final Modifier modifier ) {
358
370
return this .modifiers .contains (modifier );
359
371
}
0 commit comments