Skip to content

Commit d5fd898

Browse files
author
Brendan W. McAdams
committed
Use proper testNG assertion rather than 'core' assertion
1 parent 8d5f99b commit d5fd898

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/com/mongodb/DBCollectionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public void testMultiInsertNoContinue() {
229229
public void mongodIsVersion20Plus() {
230230
String version = (String) _db.command("serverStatus").get("version");
231231
System.err.println("Connected to MongoDB Version '" + version + "'");
232-
assert(version.charAt(0) == 2);
232+
assertEquals(version.charAt(0), 2);
233233
}
234234

235235
@Test(dependsOnMethods = { "mongodIsVersion20Plus" })

0 commit comments

Comments
 (0)