Skip to content

Commit

Permalink
4.x: Use Hamcrest assertions instead of JUnit in dbclient/mongodb (he…
Browse files Browse the repository at this point in the history
  • Loading branch information
Captain1653 committed Jul 2, 2024
1 parent 966c7f3 commit 2af6e0a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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}.
Expand All @@ -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));
}

}

0 comments on commit 2af6e0a

Please sign in to comment.