Skip to content

Commit b73d7db

Browse files
Add better fitting internal assert for the equal assertion
1 parent 6f97433 commit b73d7db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/org/javawebstack/orm/test/shared/verification/QueryVerification.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
import java.util.HashSet;
88
import java.util.List;
99

10-
import static org.junit.jupiter.api.Assertions.assertTrue;
11-
import static org.junit.jupiter.api.Assertions.fail;
10+
import static org.junit.jupiter.api.Assertions.*;
1211

1312
/**
1413
* The QueryVerification class wraps an JWS Query Object and provides assertion methods regarding the raw query string.
@@ -92,8 +91,9 @@ public QueryVerification assertSectionEquals(String topLevelKeyword, String expe
9291
return this;
9392
}
9493

95-
assertTrue(
96-
sectionString.equals(expectedString),
94+
assertEquals(
95+
expectedString,
96+
sectionString,
9797
String.format("The occurrence of index %d of %s section of the query was not equal to the string %s but looked like this: %s. Note that the match is case-sensitive.", sectionIndex, topLevelKeyword, expectedString, sectionString)
9898
);
9999

0 commit comments

Comments
 (0)