fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From my...@apache.org
Subject [fineract-cn-test] 22/32: correct output in log file
Date Mon, 22 Jan 2018 15:13:27 GMT
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 <mkrantz@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.

Mime
View raw message