atlas-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mad...@apache.org
Subject incubator-atlas git commit: ATLAS-1599: fix for unit test failure in AuditRepositoryTestBase
Date Mon, 27 Feb 2017 17:56:59 GMT
Repository: incubator-atlas
Updated Branches:
  refs/heads/master 4503955e1 -> 9e16600c4


ATLAS-1599: fix for unit test failure in AuditRepositoryTestBase


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

Branch: refs/heads/master
Commit: 9e16600c41deefdb616db5c790848f7874010d36
Parents: 4503955
Author: Vimal Sharma <svimal2106@apache.org>
Authored: Mon Feb 27 09:56:33 2017 -0800
Committer: Madhan Neethiraj <madhan@apache.org>
Committed: Mon Feb 27 09:56:33 2017 -0800

----------------------------------------------------------------------
 .../apache/atlas/repository/audit/AuditRepositoryTestBase.java | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/9e16600c/repository/src/test/java/org/apache/atlas/repository/audit/AuditRepositoryTestBase.java
----------------------------------------------------------------------
diff --git a/repository/src/test/java/org/apache/atlas/repository/audit/AuditRepositoryTestBase.java
b/repository/src/test/java/org/apache/atlas/repository/audit/AuditRepositoryTestBase.java
index 7ea15cb..3d17ca9 100644
--- a/repository/src/test/java/org/apache/atlas/repository/audit/AuditRepositoryTestBase.java
+++ b/repository/src/test/java/org/apache/atlas/repository/audit/AuditRepositoryTestBase.java
@@ -21,6 +21,7 @@ package org.apache.atlas.repository.audit;
 import org.apache.atlas.EntityAuditEvent;
 import org.apache.atlas.typesystem.Referenceable;
 import org.apache.commons.lang.RandomStringUtils;
+import org.testng.annotations.BeforeTest;
 import org.testng.annotations.Test;
 
 import java.util.ArrayList;
@@ -36,6 +37,11 @@ public class AuditRepositoryTestBase {
         return RandomStringUtils.randomAlphanumeric(10);
     }
 
+    @BeforeTest
+    public void setUp() throws Exception{
+        eventRepository = new InMemoryEntityAuditRepository();
+    }
+
     @Test
     public void testAddEvents() throws Exception {
         EntityAuditEvent event = new EntityAuditEvent(rand(), System.currentTimeMillis(),
"u1",


Mime
View raw message