summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/test/exceptions/NoHealthyServiceExceptionTest.java
blob: 33389fbc3362c71ddb1d0f9ddd78022685c7bd76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package org.openecomp.portalapp.test.exceptions;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.openecomp.portalapp.portal.exceptions.NoHealthyServiceException;

public class NoHealthyServiceExceptionTest {

	public NoHealthyServiceException mockNoHealthyServiceException(){
		NoHealthyServiceException noHealthyServiceException = new NoHealthyServiceException("test");
		
		return noHealthyServiceException;
	}
	
	@Test
	public void noHealthyServiceExceptionTest(){
		NoHealthyServiceException noHealthyServiceException = mockNoHealthyServiceException();
		
	//	assertEquals(noHealthyServiceException, new NoHealthyServiceException("test"));
		assertEquals(noHealthyServiceException.toString(), "NoHealthyServiceException [] test");
	}
}