You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by sh...@apache.org on 2021/01/06 16:18:14 UTC
[unomi] branch master updated: Fix IT compatibility with JDK 8
This is an automated email from the ASF dual-hosted git repository.
shuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to refs/heads/master by this push:
new c6efbf2 Fix IT compatibility with JDK 8
c6efbf2 is described below
commit c6efbf23e1e29b2fa03206abd498ce0ff8e2db8f
Author: Serge Huber <sh...@jahia.com>
AuthorDate: Wed Jan 6 17:18:06 2021 +0100
Fix IT compatibility with JDK 8
---
.../java/org/apache/unomi/itests/IncrementInterestsIT.java | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/itests/src/test/java/org/apache/unomi/itests/IncrementInterestsIT.java b/itests/src/test/java/org/apache/unomi/itests/IncrementInterestsIT.java
index ba8ae25..85b63a0 100644
--- a/itests/src/test/java/org/apache/unomi/itests/IncrementInterestsIT.java
+++ b/itests/src/test/java/org/apache/unomi/itests/IncrementInterestsIT.java
@@ -16,11 +16,7 @@
*/
package org.apache.unomi.itests;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-import java.util.UUID;
+import java.util.*;
import javax.inject.Inject;
@@ -45,8 +41,6 @@ import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
import org.ops4j.pax.exam.spi.reactors.PerSuite;
import org.ops4j.pax.exam.util.Filter;
-import com.sun.tools.javac.util.List;
-
import static org.apache.unomi.itests.BasicIT.ITEM_TYPE_PAGE;
@RunWith(PaxExam.class)
@@ -142,7 +136,9 @@ public class IncrementInterestsIT
final Rule rule = new Rule();
rule.setCondition( condition );
- rule.setActions( List.of( incrementAction ) );
+ List<Action> actions = new ArrayList<>();
+ actions.add(incrementAction);
+ rule.setActions( actions );
rule.setMetadata( metadata );
rulesService.setRule( rule );