You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ma...@apache.org on 2017/02/27 17:56:59 UTC
incubator-atlas git commit: ATLAS-1599: fix for unit test failure in
AuditRepositoryTestBase
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 <sv...@apache.org>
Authored: Mon Feb 27 09:56:33 2017 -0800
Committer: Madhan Neethiraj <ma...@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",