2020-03-06 13:49:34 +00:00
|
|
|
From 41302698f39a6bda58e634a786ce2a6c290eadba Mon Sep 17 00:00:00 2001
|
2019-08-29 10:50:26 +00:00
|
|
|
From: Marian Koncek <mkoncek@redhat.com>
|
2020-03-06 13:49:34 +00:00
|
|
|
Date: Fri, 6 Mar 2020 14:28:05 +0100
|
2019-08-29 10:50:26 +00:00
|
|
|
Subject: [PATCH] Port to hamcrest 2.1
|
|
|
|
|
|
|
|
---
|
2020-03-06 13:49:34 +00:00
|
|
|
src/main/java/org/junit/matchers/JUnitMatchers.java | 2 +-
|
|
|
|
.../tests/experimental/theories/runner/WithDataPointMethod.java | 2 +-
|
|
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
2019-08-29 10:50:26 +00:00
|
|
|
|
|
|
|
diff --git a/src/main/java/org/junit/matchers/JUnitMatchers.java b/src/main/java/org/junit/matchers/JUnitMatchers.java
|
2019-09-24 11:08:31 +00:00
|
|
|
index 13407cc..8889266 100644
|
2019-08-29 10:50:26 +00:00
|
|
|
--- a/src/main/java/org/junit/matchers/JUnitMatchers.java
|
|
|
|
+++ b/src/main/java/org/junit/matchers/JUnitMatchers.java
|
2019-09-24 11:08:31 +00:00
|
|
|
@@ -56,7 +56,7 @@ public class JUnitMatchers {
|
2019-08-29 10:50:26 +00:00
|
|
|
* @deprecated Please use {@link CoreMatchers#everyItem(Matcher)} instead.
|
|
|
|
*/
|
|
|
|
@Deprecated
|
|
|
|
- public static <T> Matcher<Iterable<T>> everyItem(final Matcher<T> elementMatcher) {
|
|
|
|
+ public static <T> Matcher<Iterable<? extends T>> everyItem(final Matcher<T> elementMatcher) {
|
|
|
|
return CoreMatchers.everyItem(elementMatcher);
|
|
|
|
}
|
|
|
|
|
|
|
|
diff --git a/src/test/java/org/junit/tests/experimental/theories/runner/WithDataPointMethod.java b/src/test/java/org/junit/tests/experimental/theories/runner/WithDataPointMethod.java
|
2020-03-06 13:49:34 +00:00
|
|
|
index f2b2753..e5759ed 100644
|
2019-08-29 10:50:26 +00:00
|
|
|
--- a/src/test/java/org/junit/tests/experimental/theories/runner/WithDataPointMethod.java
|
|
|
|
+++ b/src/test/java/org/junit/tests/experimental/theories/runner/WithDataPointMethod.java
|
|
|
|
@@ -108,7 +108,7 @@ public class WithDataPointMethod {
|
|
|
|
return JUnitCore.runClasses(type).getFailures();
|
|
|
|
}
|
|
|
|
|
|
|
|
- private Matcher<Iterable<Failure>> empty() {
|
|
|
|
+ private Matcher<Iterable<? extends Failure>> empty() {
|
|
|
|
return everyItem(nullValue(Failure.class));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--
|
2020-03-06 13:49:34 +00:00
|
|
|
2.24.1
|
2019-08-29 10:50:26 +00:00
|
|
|
|