From a39137cdb8755b6a15807b302ebbf8a443b99a51 Mon Sep 17 00:00:00 2001 From: Jimmy Forsyth Date: Tue, 14 Apr 2020 12:15:57 -0400 Subject: Fix build issue in ubuntu 1804 Issue-ID: AAI-2850 Signed-off-by: Jimmy Forsyth Change-Id: Iff320d89fa221bcb6c9fa4fb0f726724e1bb0eae --- .../src/test/java/org/onap/aai/rest/PrivateEdgeIntegrationTest.java | 3 +++ .../onap/aai/serialization/queryformats/CountQuerySupportTest.java | 5 +++++ 2 files changed, 8 insertions(+) (limited to 'aai-core/src/test') diff --git a/aai-core/src/test/java/org/onap/aai/rest/PrivateEdgeIntegrationTest.java b/aai-core/src/test/java/org/onap/aai/rest/PrivateEdgeIntegrationTest.java index 3bb017d6..8753b1b8 100644 --- a/aai-core/src/test/java/org/onap/aai/rest/PrivateEdgeIntegrationTest.java +++ b/aai-core/src/test/java/org/onap/aai/rest/PrivateEdgeIntegrationTest.java @@ -21,6 +21,7 @@ package org.onap.aai.rest; import static junit.framework.TestCase.fail; + import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.MatcherAssert.assertThat; @@ -51,7 +52,9 @@ import org.onap.aai.PayloadUtil; import org.onap.aai.dbmap.AAIGraph; import org.onap.aai.serialization.engines.QueryStyle; import org.onap.aai.setup.SchemaVersion; +import org.springframework.test.annotation.DirtiesContext; +@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS) @RunWith(value = Parameterized.class) public class PrivateEdgeIntegrationTest extends AAISetup { diff --git a/aai-core/src/test/java/org/onap/aai/serialization/queryformats/CountQuerySupportTest.java b/aai-core/src/test/java/org/onap/aai/serialization/queryformats/CountQuerySupportTest.java index e128c2f6..33b2dab6 100644 --- a/aai-core/src/test/java/org/onap/aai/serialization/queryformats/CountQuerySupportTest.java +++ b/aai-core/src/test/java/org/onap/aai/serialization/queryformats/CountQuerySupportTest.java @@ -44,6 +44,7 @@ import org.onap.aai.serialization.queryformats.exceptions.AAIFormatQueryResultFo import org.onap.aai.serialization.queryformats.exceptions.AAIFormatVertexException; import org.onap.aai.setup.SchemaVersion; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.test.annotation.DirtiesContext; import java.util.Arrays; import java.util.List; @@ -52,6 +53,10 @@ import static org.junit.Assert.assertEquals; import static org.mockito.Mockito.spy; import static org.mockito.Mockito.when; + + +@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS) + public class CountQuerySupportTest extends AAISetup { @Autowired -- cgit 1.2.3-korg