Fixed test case failues found as part of AAI-3100 testing but not due to AAI-3100 fix 94/113494/1
authorkuldipr <kuldip.rai@amdocs.com>
Fri, 2 Oct 2020 16:25:58 +0000 (12:25 -0400)
committerkuldipr <kuldip.rai@amdocs.com>
Fri, 2 Oct 2020 16:26:44 +0000 (12:26 -0400)
Issue-ID: AAI-3100
Signed-off-by: kuldipr <kuldip.rai@amdocs.com>
Change-Id: Icb50543e29c31ade5a367213b40b7a74f3c91661

aai-core/src/test/java/org/onap/aai/audit/ListEndpointsTest.java
aai-core/src/test/java/org/onap/aai/introspection/sideeffect/DataCopyTest.java

index eafffe6..f476a7c 100644 (file)
@@ -24,6 +24,7 @@ import org.junit.Assert;
 import org.junit.Before;
 import org.junit.BeforeClass;
 import org.junit.Test;
+import org.springframework.test.annotation.DirtiesContext;
 import org.junit.rules.ExpectedException;
 import org.onap.aai.AAISetup;
 import org.onap.aai.concurrent.AaiCallable;
@@ -47,7 +48,7 @@ import java.util.Map;
 import java.util.Properties;
 
 import static org.junit.Assert.assertTrue;
-
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class ListEndpointsTest extends AAISetup {
 
     private Properties properties;
index 7dadb14..bd7e87a 100644 (file)
@@ -33,6 +33,8 @@ import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
 import org.mockito.Mock;
 import org.mockito.MockitoAnnotations;
+import org.springframework.test.annotation.DirtiesContext;
+
 import org.onap.aai.AAISetup;
 import org.onap.aai.db.props.AAIProperties;
 import org.onap.aai.edges.enums.EdgeProperty;
@@ -60,7 +62,7 @@ import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
 @RunWith(value = Parameterized.class)
-
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class DataCopyTest extends AAISetup {
 
     private static JanusGraph graph;