This is an automated email from the ASF dual-hosted git repository.
shuber pushed a commit to branch unomi-1.5.x
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to refs/heads/unomi-1.5.x by this push:
new 7947e71 Fix errors in unit test
7947e71 is described below
commit 7947e716dd1015f7fdb1949f01489cb0e0ab7d89
Author: Serge Huber <[email protected]>
AuthorDate: Mon Aug 24 14:54:12 2020 +0200
Fix errors in unit test
(cherry picked from commit 6b2da760f8719492c64028129d459bc2720e42af)
---
.../src/test/java/org/apache/unomi/itests/ContextServletIT.java | 8 ++++----
itests/src/test/java/org/apache/unomi/itests/EventServiceIT.java | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/itests/src/test/java/org/apache/unomi/itests/ContextServletIT.java
b/itests/src/test/java/org/apache/unomi/itests/ContextServletIT.java
index 812f36c..a6dff7b 100644
--- a/itests/src/test/java/org/apache/unomi/itests/ContextServletIT.java
+++ b/itests/src/test/java/org/apache/unomi/itests/ContextServletIT.java
@@ -124,7 +124,7 @@ public class ContextServletIT extends BaseIT {
@Test
public void testUpdateEventFromContextAuthorizedThirdParty_Success()
throws IOException, InterruptedException {
//Arrange
- String eventId = "test-event-id1";
+ String eventId = "test-event-id-" + System.currentTimeMillis();
String profileId = "test-profile-id";
String sessionId = "test-session-id";
String scope = "test-scope";
@@ -159,7 +159,7 @@ public class ContextServletIT extends BaseIT {
@Test
public void testUpdateEventFromContextUnAuthorizedThirdParty_Fail()
throws IOException, InterruptedException {
//Arrange
- String eventId = "test-event-id2";
+ String eventId = "test-event-id-" + System.currentTimeMillis();
String profileId = "test-profile-id";
String sessionId = "test-session-id";
String scope = "test-scope";
@@ -194,7 +194,7 @@ public class ContextServletIT extends BaseIT {
@Test
public void
testUpdateEventFromContextAuthorizedThirdPartyNoItemID_Fail() throws
IOException, InterruptedException {
//Arrange
- String eventId = "test-event-id3";
+ String eventId = "test-event-id-" + System.currentTimeMillis();
String sessionId = "test-session-id";
String scope = "test-scope";
String eventTypeOriginal = "test-event-type-original";
@@ -320,7 +320,7 @@ public class ContextServletIT extends BaseIT {
@Test
public void testCreateEventWithProfileId_Success() throws IOException,
InterruptedException {
//Arrange
- String eventId = "test-event-id4";
+ String eventId = "test-event-id-" + System.currentTimeMillis();
String profileId = "test-profile-id";
String eventType = "test-event-type";
Event event = new Event();
diff --git a/itests/src/test/java/org/apache/unomi/itests/EventServiceIT.java
b/itests/src/test/java/org/apache/unomi/itests/EventServiceIT.java
index 160205a..5e38d19 100644
--- a/itests/src/test/java/org/apache/unomi/itests/EventServiceIT.java
+++ b/itests/src/test/java/org/apache/unomi/itests/EventServiceIT.java
@@ -52,7 +52,7 @@ public class EventServiceIT extends BaseIT {
@Test
public void test_EventExistenceWithProfileId() throws InterruptedException{
- String eventId = "test-event-id2";
+ String eventId = "test-event-id-" + System.currentTimeMillis();;
String profileId = "test-profile-id";
String eventType = "test-type";
Profile profile = new Profile(profileId);