@@ -0,0 +1,940 @@
+package at.fhj.swd14.pse.comment;%0A%0Aimport javax.faces.context.FacesContext;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.InjectMocks;%0Aimport org.mockito.Mock;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0A%0Aimport at.fhj.swd14.pse.message.MessageService;%0Aimport at.fhj.swd14.pse.user.UserService;%0A%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class CommentBeanTest%0A%7B%0A%09@InjectMocks%0A%09private CommentBean commentBean;%0A%09%0A%09@Mock%0A%09private MessageService messageService;%0A%09%0A%09@Mock%0A%09private UserService userService;%0A%09%0A%09@Mock%0A%09private CommentService commentService;%0A%0A%09@Mock%0A    private FacesContext context;%0A%09%0A%09@Before%0A%09public void setUp()%0A%09%7B%0A%09%09%0A%09%7D%0A%0A%09@Test%0A%09public void testSetGetComment()%0A%09%7B%09%0A%09%09CommentDto comment = new CommentDto(1L);%0A%09%09comment.setText(%22blabla%22);%0A%09%09%0A%09%09commentBean.setComment(comment );%0A%09%09%0A%09%09Assert.assertEquals(comment, commentBean.getComment());%0A%09%7D%0A%0A%7D%0A

add CommentBeanTest