Skip to content

Commit 78e3a91

Browse files
author
joe.walnes
committed
Moved assertThat() into hamcrest-core.
1 parent 9e5bec3 commit 78e3a91

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎CHANGES.txt‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
by using QDox to parse the source code.
55

66
* Created hamcrest-core.jar (and removed hamcrest-api.jar).
7-
Moved core set of matchers (and, eq, not, etc) to this package to make
8-
it more practical for external libraries to embed hamcrest.
7+
Moved core set of matchers (and, eq, not, etc) and assertThat()
8+
to this package to make it more practical for external libraries
9+
to embed Hamcrest.
910

1011
* Created CoreMatchers (static import sugar) in hamcrest-core.jar.
1112

hamcrest-integration/src/main/java/org/hamcrest/MatcherAssert.java renamed to hamcrest-core/src/main/java/org/hamcrest/MatcherAssert.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ public static <T> void assertThat(T actual, Matcher<T> matcher) {
88
assertThat("", actual, matcher);
99
}
1010

11-
public static <T> void assertThat(String name, T actual, Matcher<T> matcher) {
11+
public static <T> void assertThat(String reason, T actual, Matcher<T> matcher) {
1212
if (!matcher.matches(actual)) {
1313
Description description = new StringDescription();
14-
description.appendText(name);
14+
description.appendText(reason);
1515
description.appendText("\nExpected: ");
1616
matcher.describeTo(description);
1717
description.appendText("\n got: ").appendValue(actual).appendText("\n");

0 commit comments

Comments
 (0)