From 3cc73e4e7a0c81970a27035b5a982a6963714bc2 Mon Sep 17 00:00:00 2001 From: Jimmy Forsyth Date: Wed, 14 Aug 2019 11:58:45 -0400 Subject: Upversion gizmo on elalto Issue-ID: AAI-2579 Signed-off-by: Jimmy Forsyth Change-Id: I47659681d25d8d5a4715ae96d17fc85cdf3f26dd --- .../response/GraphEventResponseHandlerTest.java | 23 ++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/test/java/org/onap/crud/event/response/GraphEventResponseHandlerTest.java b/src/test/java/org/onap/crud/event/response/GraphEventResponseHandlerTest.java index b28ba3a..5f9194f 100644 --- a/src/test/java/org/onap/crud/event/response/GraphEventResponseHandlerTest.java +++ b/src/test/java/org/onap/crud/event/response/GraphEventResponseHandlerTest.java @@ -19,9 +19,8 @@ * ============LICENSE_END========================================================= */ package org.onap.crud.event.response; - import static org.assertj.core.api.Assertions.assertThat; -import org.junit.BeforeClass; +import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; @@ -41,18 +40,22 @@ import org.onap.crud.OXMModelLoaderSetup; @RunWith(MockitoJUnitRunner.Silent.class) public class GraphEventResponseHandlerTest extends OXMModelLoaderSetup { + private static boolean setUpIsNotDone = true; @Rule public ExpectedException expectedException = ExpectedException.none(); - @BeforeClass - public static void setUpBeforeClass() throws Exception { - System.setProperty("CONFIG_HOME", "src/test/resources"); - System.setProperty("AJSC_HOME", "."); - System.setProperty("BUNDLECONFIG_DIR", "src/test/resources/bundleconfig-local"); - - OxmModelLoader.loadModels(); - EdgeRulesLoader.loadModels(); + @Before + public void setUpOnce() throws Exception { + if (setUpIsNotDone) { + System.setProperty("CONFIG_HOME", "src/test/resources"); + System.setProperty("AJSC_HOME", "."); + System.setProperty("BUNDLECONFIG_DIR", "src/test/resources/bundleconfig-local"); + + OxmModelLoader.loadModels(); + EdgeRulesLoader.loadModels(); + setUpIsNotDone = false; + } } @Test -- cgit 1.2.3-korg