71f620f379a9f1c7a2d843d02553fb539150d420
[portal.git] / ecomp-portal-BE-common / src / test / java / org / openecomp / portalapp / portal / exceptions / NoHealthyServiceExceptionTest.java
1 package org.openecomp.portalapp.portal.exceptions;
2
3 import static org.junit.Assert.assertEquals;
4
5 import org.junit.Test;
6 import org.openecomp.portalapp.portal.exceptions.NoHealthyServiceException;
7
8 public class NoHealthyServiceExceptionTest {
9
10         public NoHealthyServiceException mockNoHealthyServiceException(){
11                 NoHealthyServiceException noHealthyServiceException = new NoHealthyServiceException("test");
12                 
13                 return noHealthyServiceException;
14         }
15         
16         @Test
17         public void noHealthyServiceExceptionTest(){
18                 NoHealthyServiceException noHealthyServiceException = mockNoHealthyServiceException();
19                 
20         //      assertEquals(noHealthyServiceException, new NoHealthyServiceException("test"));
21                 assertEquals(noHealthyServiceException.toString(), "NoHealthyServiceException [] test");
22         }
23 }