Merge "Fix the list endpoints test npe issue"
authorWilliam Reehil <william.reehil@att.com>
Mon, 29 Jun 2020 01:32:02 +0000 (01:32 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 29 Jun 2020 01:32:02 +0000 (01:32 +0000)
aai-core/src/test/java/org/onap/aai/audit/ListEndpointsTest.java

index 5c82524..5d60673 100644 (file)
@@ -25,11 +25,13 @@ import org.junit.Before;
 import org.junit.Test;
 import org.onap.aai.AAISetup;
 import org.onap.aai.setup.SchemaVersion;
+import org.springframework.test.annotation.DirtiesContext;
 
 import java.util.List;
 import java.util.Map;
 import java.util.Properties;
 
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class ListEndpointsTest extends AAISetup {
 
     private Properties properties;