Author: sergeyb Date: Wed Jul 1 08:50:31 2009 New Revision: 790074 URL: http://svn.apache.org/viewvc?rev=790074&view=rev Log: Fixing a test failure
Modified: cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/SpringServletTest.java Modified: cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/SpringServletTest.java URL: http://svn.apache.org/viewvc/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/SpringServletTest.java?rev=790074&r1=790073&r2=790074&view=diff ============================================================================== --- cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/SpringServletTest.java (original) +++ cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/SpringServletTest.java Wed Jul 1 08:50:31 2009 @@ -22,6 +22,7 @@ import org.w3c.dom.Document; +import com.meterware.httpunit.HttpNotFoundException; import com.meterware.httpunit.PostMethodWebRequest; import com.meterware.httpunit.WebRequest; import com.meterware.httpunit.WebResponse; @@ -30,8 +31,6 @@ import org.apache.cxf.Bus; import org.apache.cxf.BusException; import org.apache.cxf.helpers.DOMUtils; - -import org.junit.Ignore; import org.junit.Test; public class SpringServletTest extends AbstractServletTest { @@ -148,18 +147,17 @@ } @Test - @Ignore("not working for some reason") - public void testGetServiceList() throws Exception { + public void testIgnoreServiceList() throws Exception { ServletUnitClient client = newClient(); client.setExceptionsThrownOnErrorStatus(true); WebRequest req = new GetMethodQueryWebRequest(CONTEXT_URL + "/services/"); - WebResponse res = client.getResponse(req); - assertEquals(200, res.getResponseCode()); - assertEquals("text/html", res.getContentType()); - assertEquals("Here should have no services links ", 0, res.getLinks().length); - + try { + client.getResponse(req); + fail(); + } catch (HttpNotFoundException ex) { + // expected + } } - }