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 2018/02/15 16:12:18 UTC

incubator-unomi git commit: UNOMI-133 Fix broken Consent integration test

Repository: incubator-unomi
Updated Branches:
  refs/heads/master 2fba338c1 -> 636037486


UNOMI-133 Fix broken Consent integration test

Signed-off-by: Serge Huber <sh...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-unomi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-unomi/commit/63603748
Tree: http://git-wip-us.apache.org/repos/asf/incubator-unomi/tree/63603748
Diff: http://git-wip-us.apache.org/repos/asf/incubator-unomi/diff/63603748

Branch: refs/heads/master
Commit: 636037486c5b370230ae3b0775c634af705f01aa
Parents: 2fba338
Author: Serge Huber <sh...@apache.org>
Authored: Thu Feb 15 17:12:09 2018 +0100
Committer: Serge Huber <sh...@apache.org>
Committed: Thu Feb 15 17:12:09 2018 +0100

----------------------------------------------------------------------
 .../src/test/java/org/apache/unomi/itests/ModifyConsentIT.java  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/63603748/itests/src/test/java/org/apache/unomi/itests/ModifyConsentIT.java
----------------------------------------------------------------------
diff --git a/itests/src/test/java/org/apache/unomi/itests/ModifyConsentIT.java b/itests/src/test/java/org/apache/unomi/itests/ModifyConsentIT.java
index 0d7ebfa..a602dcb 100644
--- a/itests/src/test/java/org/apache/unomi/itests/ModifyConsentIT.java
+++ b/itests/src/test/java/org/apache/unomi/itests/ModifyConsentIT.java
@@ -72,10 +72,10 @@ public class ModifyConsentIT extends BaseIT {
         modifyConsentEvent.setPersistent(false);
 
         ISO8601DateFormat dateFormat = new ISO8601DateFormat();
-        Consent consent1 = new Consent("consentType01", ConsentStatus.GRANTED, new Date(), null);
+        Consent consent1 = new Consent("scope", "consentType01", ConsentStatus.GRANTED, new Date(), null);
         modifyConsentEvent.setProperty("consent", consent1.toMap(dateFormat));
         int changes = eventService.send(modifyConsentEvent);
-        Consent consent2 = new Consent("consentType02", ConsentStatus.GRANTED, new Date(), null);
+        Consent consent2 = new Consent("scope", "consentType02", ConsentStatus.GRANTED, new Date(), null);
         modifyConsentEvent.setProperty("consent", consent2.toMap(dateFormat));
         changes |= eventService.send(modifyConsentEvent);
 
@@ -94,6 +94,5 @@ public class ModifyConsentIT extends BaseIT {
 
         Assert.assertTrue(profile.getConsents().size() == 2);
 
-
     }
 }