EdgeRules throws descriptive error on invalid rule
[aai/aai-common.git] / aai-core / src / test / java / org / openecomp / aai / exceptions / AAIExceptionWithInfoTest.java
index 65381d6..41841ac 100644 (file)
 
 package org.openecomp.aai.exceptions;
 
-import org.junit.BeforeClass;
 import org.junit.Test;
+import org.openecomp.aai.AAISetup;
 
 import java.util.HashMap;
 
 import static org.junit.Assert.assertEquals;
 
-public class AAIExceptionWithInfoTest {
+public class AAIExceptionWithInfoTest extends AAISetup {
 
        
        private static final HashMap<String, Object> map = new HashMap<String, Object>();
@@ -43,12 +43,6 @@ public class AAIExceptionWithInfoTest {
        private static final String details = "This is a detailed description of the exception.";
        private static final Throwable cause = new RuntimeException("This is a runtime exception.");
 
-       @BeforeClass
-       public static void configure() {
-               System.setProperty("AJSC_HOME", "./src/test/resources/");
-               System.setProperty("BUNDLECONFIG_DIR", "bundleconfig-local");
-       }
-
        /**
         * Test constructor with 2 params.
         *