From 2af6e0ada659464e1d4db2b8b01d8dbb4ba8c252 Mon Sep 17 00:00:00 2001 From: Andrei Arlou Date: Tue, 2 Jul 2024 09:09:42 +0300 Subject: [PATCH] 4.x: Use Hamcrest assertions instead of JUnit in dbclient/mongodb (#1749) --- .../io/helidon/dbclient/mongodb/StatementParsersTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dbclient/mongodb/src/test/java/io/helidon/dbclient/mongodb/StatementParsersTest.java b/dbclient/mongodb/src/test/java/io/helidon/dbclient/mongodb/StatementParsersTest.java index 1b164cf5a7d..1cea03bdcee 100644 --- a/dbclient/mongodb/src/test/java/io/helidon/dbclient/mongodb/StatementParsersTest.java +++ b/dbclient/mongodb/src/test/java/io/helidon/dbclient/mongodb/StatementParsersTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019, 2023 Oracle and/or its affiliates. + * Copyright (c) 2019, 2024 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,8 @@ import org.junit.jupiter.api.Test; -import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.hamcrest.CoreMatchers.is; +import static org.hamcrest.MatcherAssert.assertThat; /** * Unit test for {@link StatementParsers}. @@ -44,7 +45,7 @@ void testStatementWithParameters() { .replace("$idmax", String.valueOf(mapping.get("idmax"))); NamedParser parser = new NamedParser(stmtIn, mapping); String stmtOut = parser.convert(); - assertEquals(stmtExp, stmtOut); + assertThat(stmtOut, is(stmtExp)); } }