Skip to content

Commit 1f38bc7

Browse files
committed
Use Junit4.
1 parent 3bd9710 commit 1f38bc7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

driver-core/src/test/unit/com/mongodb/connection/ServerSelectionSelectionTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
import org.bson.BsonValue;
4747
import org.bson.json.JsonWriterSettings;
4848
import org.junit.Test;
49-
import org.junit.jupiter.api.Assertions;
5049
import org.junit.runner.RunWith;
5150
import org.junit.runners.Parameterized;
5251
import util.JsonPoweredTestHelper;
@@ -69,7 +68,7 @@
6968
import static org.junit.Assert.assertTrue;
7069
import static org.junit.Assert.fail;
7170
import static org.junit.Assume.assumeFalse;
72-
import static org.junit.jupiter.api.Assertions.assertNotNull;
71+
import static org.junit.Assert.assertNotNull;
7372
import static org.mockito.Mockito.when;
7473

7574
// See https://github.com/mongodb/specifications/tree/master/source/server-selection/tests
@@ -352,7 +351,7 @@ public ServersSnapshot getServersSnapshot(final Timeout serverSelectionTimeout,
352351
@Override
353352
public void onChange(final ServerDescriptionChangedEvent event) {
354353
// We do not expect this to be called during server selection.
355-
Assertions.fail();
354+
fail();
356355
}
357356
}
358357
}

0 commit comments

Comments
 (0)