You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by my...@apache.org on 2018/01/22 15:13:27 UTC

[fineract-cn-test] 22/32: correct output in log file

This is an automated email from the ASF dual-hosted git repository.

myrle pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract-cn-test.git

commit 926d03acd8197d832bf11d3e7801f54edd23e889
Author: myrle-krantz <mk...@mifos.org>
AuthorDate: Wed May 24 10:35:10 2017 +0200

    correct output in log file
---
 .../io/mifos/core/test/listener/InMemoryEventRecorder.java   | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/main/java/io/mifos/core/test/listener/InMemoryEventRecorder.java b/src/main/java/io/mifos/core/test/listener/InMemoryEventRecorder.java
index 7455b70..662e4a9 100644
--- a/src/main/java/io/mifos/core/test/listener/InMemoryEventRecorder.java
+++ b/src/main/java/io/mifos/core/test/listener/InMemoryEventRecorder.java
@@ -46,7 +46,17 @@ class InMemoryEventRecorder implements EventRecorder {
 
   @Override
   public <T> boolean wait(final String operation, final T payloadMatcher) throws InterruptedException {
-    return waitForMatch(operation, x -> x.equals(payloadMatcher));
+    return waitForMatch(operation, new Function() {
+      @Override
+      public Object apply(Object x) {
+        return x.equals(payloadMatcher);
+      }
+
+      @Override
+      public String toString() {
+        return payloadMatcher.toString();
+      }
+    });
   }
 
   @Override

-- 
To stop receiving notification emails like this one, please contact
myrle@apache.org.