Skip to content

Commit

Permalink
Revert "Deprecate MockitoHamcrest (mockito#1819)"
Browse files Browse the repository at this point in the history
This reverts commit d4544a8.
  • Loading branch information
TimvdLippe authored and epeee committed Jun 22, 2020
1 parent e0c4f38 commit f9f9d24
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/main/java/org/mockito/hamcrest/MockitoHamcrest.java
Expand Up @@ -44,10 +44,7 @@
* If you have an idea how to fix the problem, let us know via the mailing list or the issue tracker.
*
* @since 2.1.0
*
* @deprecated Use the regular {@link org.mockito.ArgumentMatchers#argThat(ArgumentMatcher)} instead
*/
@Deprecated
public class MockitoHamcrest {

/**
Expand All @@ -58,9 +55,7 @@ public class MockitoHamcrest {
* @param matcher decides whether argument matches
* @return <code>null</code> or default value for primitive (0, false, etc.)
* @since 2.1.0
* @deprecated Use {@link org.mockito.ArgumentMatchers#argThat(ArgumentMatcher)} instead
*/
@Deprecated
@SuppressWarnings("unchecked")
public static <T> T argThat(Matcher<T> matcher) {
reportMatcher(matcher);
Expand All @@ -75,9 +70,7 @@ public static <T> T argThat(Matcher<T> matcher) {
*
* @param matcher decides whether argument matches
* @return <code>0</code>.
* @deprecated Use {@link org.mockito.ArgumentMatchers#charThat(ArgumentMatcher)} instead
*/
@Deprecated
public static char charThat(Matcher<Character> matcher) {
reportMatcher(matcher);
return 0;
Expand All @@ -91,9 +84,7 @@ public static char charThat(Matcher<Character> matcher) {
*
* @param matcher decides whether argument matches
* @return <code>false</code>.
* @deprecated Use {@link org.mockito.ArgumentMatchers#booleanThat(ArgumentMatcher)} instead
*/
@Deprecated
public static boolean booleanThat(Matcher<Boolean> matcher) {
reportMatcher(matcher);
return false;
Expand All @@ -107,9 +98,7 @@ public static boolean booleanThat(Matcher<Boolean> matcher) {
*
* @param matcher decides whether argument matches
* @return <code>0</code>.
* @deprecated Use {@link org.mockito.ArgumentMatchers#byteThat(ArgumentMatcher)} instead
*/
@Deprecated
public static byte byteThat(Matcher<Byte> matcher) {
reportMatcher(matcher);
return 0;
Expand All @@ -123,9 +112,7 @@ public static byte byteThat(Matcher<Byte> matcher) {
*
* @param matcher decides whether argument matches
* @return <code>0</code>.
* @deprecated Use {@link org.mockito.ArgumentMatchers#shortThat(ArgumentMatcher)} instead
*/
@Deprecated
public static short shortThat(Matcher<Short> matcher) {
reportMatcher(matcher);
return 0;
Expand All @@ -139,9 +126,7 @@ public static short shortThat(Matcher<Short> matcher) {
*
* @param matcher decides whether argument matches
* @return <code>0</code>.
* @deprecated Use {@link org.mockito.ArgumentMatchers#intThat(ArgumentMatcher)} instead
*/
@Deprecated
public static int intThat(Matcher<Integer> matcher) {
reportMatcher(matcher);
return 0;
Expand All @@ -155,9 +140,7 @@ public static int intThat(Matcher<Integer> matcher) {
*
* @param matcher decides whether argument matches
* @return <code>0</code>.
* @deprecated Use {@link org.mockito.ArgumentMatchers#longThat(ArgumentMatcher)} instead
*/
@Deprecated
public static long longThat(Matcher<Long> matcher) {
reportMatcher(matcher);
return 0;
Expand All @@ -171,9 +154,7 @@ public static long longThat(Matcher<Long> matcher) {
*
* @param matcher decides whether argument matches
* @return <code>0</code>.
* @deprecated Use {@link org.mockito.ArgumentMatchers#floatThat(ArgumentMatcher)} instead
*/
@Deprecated
public static float floatThat(Matcher<Float> matcher) {
reportMatcher(matcher);
return 0;
Expand All @@ -187,9 +168,7 @@ public static float floatThat(Matcher<Float> matcher) {
*
* @param matcher decides whether argument matches
* @return <code>0</code>.
* @deprecated Use {@link org.mockito.ArgumentMatchers#doubleThat(ArgumentMatcher)} instead
*/
@Deprecated
public static double doubleThat(Matcher<Double> matcher) {
reportMatcher(matcher);
return 0;
Expand Down

0 comments on commit f9f9d24

Please sign in to comment.