Blame SOURCES/mockito-matcher.patch

60961a
From 02df4868e1614b9fd224e40c1556b78eeb01cd3d Mon Sep 17 00:00:00 2001
60961a
From: Michael Simacek <msimacek@redhat.com>
60961a
Date: Wed, 4 Dec 2013 16:52:24 +0100
60961a
Subject: [PATCH] mockito matcher
60961a
60961a
Signed-off-by: Michael Simacek <msimacek@redhat.com>
60961a
---
60961a
 src/org/mockito/internal/matchers/LocalizedMatcher.java | 8 +++++++-
60961a
 1 file changed, 7 insertions(+), 1 deletion(-)
60961a
60961a
diff --git a/src/org/mockito/internal/matchers/LocalizedMatcher.java b/src/org/mockito/internal/matchers/LocalizedMatcher.java
60961a
index d6dda04..9dffe06 100644
60961a
--- a/src/org/mockito/internal/matchers/LocalizedMatcher.java
60961a
+++ b/src/org/mockito/internal/matchers/LocalizedMatcher.java
60961a
@@ -22,6 +22,12 @@ public class LocalizedMatcher implements Matcher, ContainsExtraTypeInformation,
60961a
         this.location = new LocationImpl();
60961a
     }
60961a
 
60961a
+    /* This is a hack for Fedora. Bug has been filed here:
60961a
+     * https://code.google.com/p/mockito/issues/detail?id=428 */
60961a
+    public void describeMismatch(Object item, Description mismatchDescription) {
60961a
+        mismatchDescription.appendText("was ").appendValue(item);
60961a
+    }
60961a
+
60961a
     public void _dont_implement_Matcher___instead_extend_BaseMatcher_() {
60961a
         // yeah right
60961a
     }
60961a
@@ -37,7 +43,7 @@ public class LocalizedMatcher implements Matcher, ContainsExtraTypeInformation,
60961a
     public Location getLocation() {
60961a
         return location;
60961a
     }
60961a
-    
60961a
+
60961a
     @Override
60961a
     public String toString() {
60961a
         return "Localized: " + this.actualMatcher;
60961a
-- 
60961a
1.8.3.1
60961a