@@ -0,0 +1,1108 @@
+package edu.cmu.sv.ws.ssnoc.test;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport java.sql.Timestamp;%0A%0Aimport javax.ws.rs.core.Response;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport edu.cmu.sv.ws.ssnoc.dto.Message;%0Aimport edu.cmu.sv.ws.ssnoc.dto.User;%0Aimport edu.cmu.sv.ws.ssnoc.rest.MessageService;%0Aimport edu.cmu.sv.ws.ssnoc.rest.UserService;%0A%0Apublic class WallMessageTest %7B%0A%0A%09@Before%0A%09public void setUp() throws Exception %7B%0A%09%09User user = new User();%0A%09%09user.setUserName(%22foo%22);%0A%09%09user.setPassword(%221234%22);%0A%09%09%0A%09%09UserService userService = new UserService();%0A%09%09userService.addUser(user);%0A%09%7D%0A%0A%09@After%0A%09public void tearDown() throws Exception %7B%0A%09%7D%0A%0A%09@Test%0A%09public void test() %7B%0A%09%09Message msg = new Message();%0A%09%09msg.setAuthor(%22foo%22);%0A%09%09Timestamp postedAt = new Timestamp(1234);%0A%09%09msg.setPostedAt(postedAt);%0A%09%09msg.setContent(%22test test lloyd owes a me a beer%22);%0A%09%09%0A%09%09MessageService msgService = new MessageService();%0A%09%09Response response = msgService.addWallMessage(%22foo%22, msg);%0A%09%09assertEquals(((Message)response.getEntity()).getContent(), %22test test lloyd owes a me a beer%22);%0A%09%7D%0A%0A%7D%0A

Add initial version of publish message on public wall test