summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-common/src/test/java/org/openecomp/portalapp/portal/domain/EPEndpointAccountTest.java
blob: c19ecf8b9145f729d91ba198f58c8d1674028fca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package org.openecomp.portalapp.portal.domain;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.openecomp.portalapp.portal.domain.EPEndpointAccount;

public class EPEndpointAccountTest {

	public EPEndpointAccount mockEPEndpointAccount(){
		EPEndpointAccount epEndpointAccount = new EPEndpointAccount();
		
		epEndpointAccount.setEp_id((long)1);
		epEndpointAccount.setAccount_id((long)1);
		epEndpointAccount.setId((long)1);
		
		return epEndpointAccount;
	}
	
	@Test
	public void epEndpointAccount(){
		EPEndpointAccount epEndpointAccount = mockEPEndpointAccount();
		assertEquals(epEndpointAccount.getEp_id(), new Long(1));
		assertEquals(epEndpointAccount.getAccount_id(), new Long(1));
		assertEquals(epEndpointAccount.getId(), new Long(1));
		
		assertEquals(epEndpointAccount.toString(), "EPEndpointAccount [id=1, ep_id=1, account_id=1]");
	}
}