Add doc folder.
[portal.git] / ecomp-portal-BE-common-test / src / main / java / org / openecomp / portalapp / portal / transport / EpNotificationItemVOTest.java
1 package org.openecomp.portalapp.portal.transport;
2
3 import static org.junit.Assert.assertEquals;
4
5 import java.util.Date;
6
7 import org.junit.Test;
8 import org.openecomp.portalapp.portal.transport.EpNotificationItemVO;
9
10 public class EpNotificationItemVOTest {
11
12         public EpNotificationItemVO mockEpNotificationItemVO(){
13                 EpNotificationItemVO epNotificationItemVO = new EpNotificationItemVO();
14                                 
15                 epNotificationItemVO.setNotificationId(1);
16                 epNotificationItemVO.setIsForOnlineUsers('a');
17                 epNotificationItemVO.setIsForAllRoles('a');
18                 epNotificationItemVO.setActiveYn('a');
19                 epNotificationItemVO.setMsgHeader("test");
20                 epNotificationItemVO.setMsgDescription("test");
21                 epNotificationItemVO.setMsgSource("test");
22                 epNotificationItemVO.setPriority(1);
23                 epNotificationItemVO.setCreatorId(1);
24                 epNotificationItemVO.setLoginId("test");
25                 epNotificationItemVO.setNotificationHyperlink("test");
26                 
27                  return epNotificationItemVO;
28         }
29         
30         @Test
31         public void epNotificationItemVOTest(){
32                 EpNotificationItemVO epNotificationItemVO = mockEpNotificationItemVO();
33                 
34                 assertEquals(epNotificationItemVO.getNotificationId().toString(), "1");
35                 /*assertEquals(epNotificationItemVO.getIsForOnlineUsers(), 'a');
36                 assertEquals(epNotificationItemVO.getIsForAllRoles(), 'a');
37                 assertEquals(epNotificationItemVO.getActiveYn(), 'a');*/
38                 assertEquals(epNotificationItemVO.getMsgHeader(), "test");
39                 assertEquals(epNotificationItemVO.getMsgDescription(), "test");
40                 assertEquals(epNotificationItemVO.getMsgSource(), "test");
41                 assertEquals(epNotificationItemVO.getPriority().toString(), "1");
42                 assertEquals(epNotificationItemVO.getCreatorId().toString(), "1");
43                 assertEquals(epNotificationItemVO.getLoginId(), "test");
44                 assertEquals(epNotificationItemVO.getNotificationHyperlink(), "test");
45         }
46 }