Skip to content

Commit 5c5f107

Browse files
committed
Remove AsyncTestBase hamcrest matcher helper
1 parent 475f4c6 commit 5c5f107

3 files changed

Lines changed: 0 additions & 36 deletions

File tree

vertx-core/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,6 @@
168168
<version>${junit.version}</version>
169169
<scope>test</scope>
170170
</dependency>
171-
<dependency>
172-
<groupId>org.hamcrest</groupId>
173-
<artifactId>hamcrest-core</artifactId>
174-
<version>${harmcrest.version}</version>
175-
<scope>test</scope>
176-
</dependency>
177171
<dependency>
178172
<groupId>org.assertj</groupId>
179173
<artifactId>assertj-core</artifactId>

vertx-core/src/test/java/io/vertx/test/core/AsyncTestBase.java

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import org.assertj.core.api.AbstractCharSequenceAssert;
2121
import org.assertj.core.api.AbstractComparableAssert;
2222
import org.assertj.core.api.AbstractObjectAssert;
23-
import org.hamcrest.Matcher;
2423
import org.junit.After;
2524
import org.junit.Assert;
2625
import org.junit.Before;
@@ -470,20 +469,6 @@ protected void assertEquals(double expected, double actual, double delta) {
470469
}
471470
}
472471

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-
487472
@Deprecated
488473
protected void assertEquals(String message, Object[] expecteds, Object[] actuals) {
489474
checkThread();
@@ -526,20 +511,6 @@ protected void assertNotEquals(String message, Object unexpected, Object actual)
526511
}
527512
}
528513

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-
543514
/**
544515
* AssertJ-based assertion for general objects using Consumer pattern.
545516
* This method is thread-safe for event-loop assertions.

vertx-core/src/test/java/module-info.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
requires io.vertx.core.logging;
99

1010
requires static org.assertj.core;
11-
requires static org.hamcrest;
1211

1312
requires junit;
1413
requires java.management;

0 commit comments

Comments
 (0)