public void testGetAtomSyndFeed() throws Exception { MockHttpServletRequest request = MockRequestConstructor.constructMockRequest( "GET", "/test/atomsyndfeed", "application/atom+xml"); MockHttpServletResponse response = invoke(request); assertEquals(200, response.getStatus()); String msg = TestUtils.diffIgnoreUpdateWithAttributeQualifier(FEED, response.getContentAsString()); assertNull(msg, msg); }
public void testPostAtomFeedElement() throws Exception { MockHttpServletRequest request = MockRequestConstructor.constructMockRequest( "POST", "/test/atomfeedelement", "application/atom+xml"); request.setContentType("application/atom+xml"); request.setContent(FEED.getBytes()); MockHttpServletResponse response = invoke(request); assertEquals(200, response.getStatus()); String msg = TestUtils.diffIgnoreUpdateWithAttributeQualifier(FEED, response.getContentAsString()); assertNull(msg, msg); }