From 57d991e0ac0e7ee0156947156f80aedd7d4417f1 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Tue, 17 Mar 2009 17:42:56 +0000 Subject: [PATCH] [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 --- .../archiva/web/rss/RssFeedServletTest.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 ) { -- 2.39.5