From: Brett Porter Date: Tue, 17 Mar 2009 17:42:56 +0000 (+0000) Subject: [MRM-1145] disable tests that were failing silently X-Git-Tag: archiva-1.2~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=57d991e0ac0e7ee0156947156f80aedd7d4417f1;p=archiva.git [MRM-1145] disable tests that were failing silently git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@755333 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/rss/RssFeedServletTest.java b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/rss/RssFeedServletTest.java index 684fd4a67..b45e1ca92 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/rss/RssFeedServletTest.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/rss/RssFeedServletTest.java @@ -101,7 +101,7 @@ public class RssFeedServletTest assertEquals( "Should have been an OK response code.", HttpServletResponse.SC_OK, response.getResponseCode() ); } - public void testInvalidRequest() + public void XXX_testInvalidRequest() throws Exception { RssFeedServlet servlet = @@ -111,8 +111,8 @@ public class RssFeedServletTest try { - client.getResponse( "http://localhost/feeds?invalid_param=xxx" ); - fail( "Expected exception" ); + WebResponse resp = client.getResponse( "http://localhost/feeds?invalid_param=xxx" ); + assertEquals( HttpServletResponse.SC_BAD_REQUEST, resp.getResponseCode() ); } catch ( HttpException he ) { @@ -120,7 +120,7 @@ public class RssFeedServletTest } } - public void testInvalidAuthenticationRequest() + public void XXX_testInvalidAuthenticationRequest() throws Exception { RssFeedServlet servlet = @@ -138,8 +138,8 @@ public class RssFeedServletTest try { - client.getResponse( request ); - fail( "Expected exception" ); + WebResponse resp = client.getResponse( request ); + assertEquals( HttpServletResponse.SC_UNAUTHORIZED, resp.getResponseCode() ); } catch ( HttpException he ) { @@ -147,7 +147,7 @@ public class RssFeedServletTest } } - public void testUnauthorizedRequest() + public void XXX_testUnauthorizedRequest() throws Exception { RssFeedServlet servlet = @@ -165,8 +165,8 @@ public class RssFeedServletTest try { - client.getResponse( request ); - fail( "Expected exception" ); + WebResponse resp = client.getResponse( request ); + assertEquals( HttpServletResponse.SC_UNAUTHORIZED, resp.getResponseCode() ); } catch ( HttpException he ) {