You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2019/03/25 13:53:16 UTC
[syncope] branch 2_1_X updated: [SYNCOPE-1448] Ensure Java 8
compatibility
This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/2_1_X by this push:
new e515784 [SYNCOPE-1448] Ensure Java 8 compatibility
e515784 is described below
commit e51578473a4ae78c9b3d60c8e8d2839ae7aa533c
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Mon Mar 25 14:53:05 2019 +0100
[SYNCOPE-1448] Ensure Java 8 compatibility
---
.../org/apache/syncope/core/spring/ImplementationManagerTest.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/core/spring/src/test/java/org/apache/syncope/core/spring/ImplementationManagerTest.java b/core/spring/src/test/java/org/apache/syncope/core/spring/ImplementationManagerTest.java
index 9c62381..2ee2064 100644
--- a/core/spring/src/test/java/org/apache/syncope/core/spring/ImplementationManagerTest.java
+++ b/core/spring/src/test/java/org/apache/syncope/core/spring/ImplementationManagerTest.java
@@ -81,7 +81,9 @@ public class ImplementationManagerTest {
Thread.yield();
}
try {
- ImplementationManager.buildPasswordRule(implementation).orElseThrow();
+ ImplementationManager.buildPasswordRule(implementation).orElseThrow(() -> {
+ throw new IllegalStateException("No implementation returned");
+ });
} catch (Exception e) {
errorMessages.add(e.getLocalizedMessage());
errorCount.incrementAndGet();