summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJimmy Forsyth <jf2512@att.com>2019-08-14 11:58:45 -0400
committerJimmy Forsyth <jf2512@att.com>2019-08-15 11:02:33 -0400
commit3cc73e4e7a0c81970a27035b5a982a6963714bc2 (patch)
treeabb2c4daa53c09abeef8d70ea6e57b0197fcbad4 /src
parent0c5c2a39ab3fb5aa54e0e70699a23db08455fcbe (diff)
Upversion gizmo on elalto
Issue-ID: AAI-2579 Signed-off-by: Jimmy Forsyth <jf2512@att.com> Change-Id: I47659681d25d8d5a4715ae96d17fc85cdf3f26dd
Diffstat (limited to 'src')
-rw-r--r--src/test/java/org/onap/crud/event/response/GraphEventResponseHandlerTest.java23
1 files changed, 13 insertions, 10 deletions
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