Fix the list endpoints test npe issue
[aai/aai-common.git] / 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;