junit testcase NoncentralizedAppException 72/106372/1
authorezhil <ezhrajam@in.ibm.com>
Tue, 21 Apr 2020 16:05:49 +0000 (21:35 +0530)
committerezhil <ezhrajam@in.ibm.com>
Tue, 21 Apr 2020 16:05:58 +0000 (21:35 +0530)
Issue-ID: PORTAL-814
Change-Id: I0b89193e913e45bce0f29b7735dd65eb2f66d1f8
Signed-off-by: ezhil <ezhrajam@in.ibm.com>
ecomp-portal-BE-common/src/test/java/org/onap/portalapp/portal/exceptions/NonCentralizedAppExceptionTest.java

index 7109b2d..d295843 100644 (file)
@@ -39,11 +39,14 @@ package org.onap.portalapp.portal.exceptions;
 
 import org.junit.Test;
 
+import static org.junit.Assert.assertEquals;
+
 public class NonCentralizedAppExceptionTest {
 
        @Test
     public void TestException2() {
         String s1 = "Value1";
         NonCentralizedAppException nca = new NonCentralizedAppException(s1);
+        assertEquals(nca.toString(),"Value1 is not Centralized Application");
        }
 }