Merge "Support vDNS RainyDay test Case."
[policy/models.git] / models-interactions / model-impl / aai / src / test / java / org / onap / policy / aai / util / AaiExceptionTest.java
index 4be8a53..caee19a 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * aai
  * ================================================================================
- * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2020 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -24,17 +24,18 @@ package org.onap.policy.aai.util;
 import static org.junit.Assert.assertNotNull;
 
 import java.io.IOException;
-
 import org.junit.Test;
 
 public class AaiExceptionTest {
 
+    private static final String MESSAGE = "message";
+
     @Test
     public void test() {
         assertNotNull(new AaiException());
-        assertNotNull(new AaiException("message"));
-        assertNotNull(new AaiException("message", new IOException()));
-        assertNotNull(new AaiException("message", new IOException(), true, false));
+        assertNotNull(new AaiException(MESSAGE));
+        assertNotNull(new AaiException(MESSAGE, new IOException()));
+        assertNotNull(new AaiException(MESSAGE, new IOException(), true, false));
         assertNotNull(new AaiException(new IOException()));
     }