diff options
Diffstat (limited to 'aai-core')
-rw-r--r-- | aai-core/src/test/java/org/onap/aai/audit/ListEndpointsTest.java | 3 | ||||
-rw-r--r-- | aai-core/src/test/java/org/onap/aai/introspection/sideeffect/DataCopyTest.java | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/aai-core/src/test/java/org/onap/aai/audit/ListEndpointsTest.java b/aai-core/src/test/java/org/onap/aai/audit/ListEndpointsTest.java index eafffe63..f476a7cc 100644 --- a/aai-core/src/test/java/org/onap/aai/audit/ListEndpointsTest.java +++ b/aai-core/src/test/java/org/onap/aai/audit/ListEndpointsTest.java @@ -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; diff --git a/aai-core/src/test/java/org/onap/aai/introspection/sideeffect/DataCopyTest.java b/aai-core/src/test/java/org/onap/aai/introspection/sideeffect/DataCopyTest.java index 7dadb14a..bd7e87a7 100644 --- a/aai-core/src/test/java/org/onap/aai/introspection/sideeffect/DataCopyTest.java +++ b/aai-core/src/test/java/org/onap/aai/introspection/sideeffect/DataCopyTest.java @@ -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; |