Skip to content

Commit c20c629

Browse files
author
nat.pryce
committed
implementation of issue 15: assertThat(String,boolean)
1 parent 07621ff commit c20c629

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hamcrest-integration/src/main/java/org/hamcrest/MatcherAssert.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ public static <T> void assertThat(String reason, T actual, Matcher<T> matcher) {
1818
.appendValue(actual)
1919
.appendText("\n");
2020

21-
throw new java.lang.AssertionError(description.toString());
21+
throw new AssertionError(description.toString());
2222
}
2323
}
2424

2525
public static void assertThat(String reason, boolean assertion) {
2626
if (!assertion) {
27-
throw new java.lang.AssertionError(reason);
27+
throw new AssertionError(reason);
2828
}
2929
}
3030
}

hamcrest-unit-test/src/main/java/org/hamcrest/MatcherAssertTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void testDescriptionCanBeElided() {
4040
}
4141

4242
public void testCanTestBooleanDirectly() {
43-
assertThat("reason message", true);
43+
assertThat("success reason message", true);
4444

4545
try {
4646
assertThat("failing reason message", false);

0 commit comments

Comments
 (0)