Blame SOURCES/mockito-matcher.patch

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