Skip to content

Commit 6cc3cce

Browse files
authored
4.x: Use Hamcrest assertions instead of JUnit in dbclient/mongodb (#1749) (#8934)
1 parent e8269d2 commit 6cc3cce

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dbclient/mongodb/src/test/java/io/helidon/dbclient/mongodb/StatementParsersTest.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2023 Oracle and/or its affiliates.
2+
* Copyright (c) 2019, 2024 Oracle and/or its affiliates.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,7 +22,8 @@
2222

2323
import org.junit.jupiter.api.Test;
2424

25-
import static org.junit.jupiter.api.Assertions.assertEquals;
25+
import static org.hamcrest.CoreMatchers.is;
26+
import static org.hamcrest.MatcherAssert.assertThat;
2627

2728
/**
2829
* Unit test for {@link StatementParsers}.
@@ -44,7 +45,7 @@ void testStatementWithParameters() {
4445
.replace("$idmax", String.valueOf(mapping.get("idmax")));
4546
NamedParser parser = new NamedParser(stmtIn, mapping);
4647
String stmtOut = parser.convert();
47-
assertEquals(stmtExp, stmtOut);
48+
assertThat(stmtOut, is(stmtExp));
4849
}
4950

5051
}

0 commit comments

Comments
 (0)