* limitations under the License.
* ============LICENSE_END=========================================================
*/
+
package org.onap.aai.exceptions;
-import org.junit.Test;
-import org.onap.aai.AAISetup;
+import static org.junit.Assert.assertEquals;
import java.util.HashMap;
-import static org.junit.Assert.assertEquals;
+import org.junit.Test;
+import org.onap.aai.AAISetup;
public class AAIExceptionWithInfoTest extends AAISetup {
-
private static final HashMap<String, Object> map = new HashMap<String, Object>();
{
HashMap<String, Object> newMap = new HashMap<String, Object>();
newMap.put("itemInteger", 2);
exception.setInfoHash(newMap);
-
+
assertEquals(newMap, exception.getInfoHash());
assertEquals(info, exception.getInfo());
}
-
+
/**
* Test set info.
*/
String newInfo = "This is updated info.";
exception.setInfo(newInfo);
-
+
assertEquals(map, exception.getInfoHash());
assertEquals(newInfo, exception.getInfo());
}