Commit 9e16600c by Vimal Sharma Committed by Madhan Neethiraj

ATLAS-1599: fix for unit test failure in AuditRepositoryTestBase

parent 4503955e
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment