|
20 | 20 | import org.assertj.core.api.AbstractCharSequenceAssert; |
21 | 21 | import org.assertj.core.api.AbstractComparableAssert; |
22 | 22 | import org.assertj.core.api.AbstractObjectAssert; |
23 | | -import org.hamcrest.Matcher; |
24 | 23 | import org.junit.After; |
25 | 24 | import org.junit.Assert; |
26 | 25 | import org.junit.Before; |
@@ -470,20 +469,6 @@ protected void assertEquals(double expected, double actual, double delta) { |
470 | 469 | } |
471 | 470 | } |
472 | 471 |
|
473 | | - /** |
474 | | - * @deprecated Use {@link #assertThat(Object, Consumer)} with AssertJ assertions instead. |
475 | | - * Example: {@code assertThat(value, a -> a.isEqualTo(expected))} |
476 | | - */ |
477 | | - @Deprecated |
478 | | - protected <T> void assertThat(T actual, Matcher<T> matcher) { |
479 | | - checkThread(); |
480 | | - try { |
481 | | - Assert.assertThat(actual, matcher); |
482 | | - } catch (AssertionError e) { |
483 | | - handleThrowable(e); |
484 | | - } |
485 | | - } |
486 | | - |
487 | 472 | @Deprecated |
488 | 473 | protected void assertEquals(String message, Object[] expecteds, Object[] actuals) { |
489 | 474 | checkThread(); |
@@ -526,20 +511,6 @@ protected void assertNotEquals(String message, Object unexpected, Object actual) |
526 | 511 | } |
527 | 512 | } |
528 | 513 |
|
529 | | - /** |
530 | | - * @deprecated Use {@link #assertThat(Object, Consumer)} with AssertJ assertions instead. |
531 | | - * Example: {@code assertThat(value, a -> a.as(reason).isEqualTo(expected))} |
532 | | - */ |
533 | | - @Deprecated |
534 | | - protected <T> void assertThat(String reason, T actual, Matcher<T> matcher) { |
535 | | - checkThread(); |
536 | | - try { |
537 | | - Assert.assertThat(reason, actual, matcher); |
538 | | - } catch (AssertionError e) { |
539 | | - handleThrowable(e); |
540 | | - } |
541 | | - } |
542 | | - |
543 | 514 | /** |
544 | 515 | * AssertJ-based assertion for general objects using Consumer pattern. |
545 | 516 | * This method is thread-safe for event-loop assertions. |
|
0 commit comments