felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r1056883 - /felix/trunk/http/base/src/test/java/org/apache/felix/http/base/internal/handler/ServletHandlerTest.java
Date Sun, 09 Jan 2011 03:48:55 GMT
Author: fmeschbe
Date: Sun Jan  9 03:48:55 2011
New Revision: 1056883

URL: http://svn.apache.org/viewvc?rev=1056883&view=rev
Log:
FELIX-2768 Adapt unit test: sendError is not called but only setStatus

Modified:
    felix/trunk/http/base/src/test/java/org/apache/felix/http/base/internal/handler/ServletHandlerTest.java

Modified: felix/trunk/http/base/src/test/java/org/apache/felix/http/base/internal/handler/ServletHandlerTest.java
URL: http://svn.apache.org/viewvc/felix/trunk/http/base/src/test/java/org/apache/felix/http/base/internal/handler/ServletHandlerTest.java?rev=1056883&r1=1056882&r2=1056883&view=diff
==============================================================================
--- felix/trunk/http/base/src/test/java/org/apache/felix/http/base/internal/handler/ServletHandlerTest.java
(original)
+++ felix/trunk/http/base/src/test/java/org/apache/felix/http/base/internal/handler/ServletHandlerTest.java
Sun Jan  9 03:48:55 2011
@@ -133,7 +133,7 @@ public class ServletHandlerTest
 
         Assert.assertTrue(result);
         Mockito.verify(this.servlet, Mockito.never()).service(req, res);
-        Mockito.verify(res).sendError(HttpServletResponse.SC_FORBIDDEN);
+        Mockito.verify(res).setStatus(HttpServletResponse.SC_FORBIDDEN);
     }
 
     @Test



Mime
View raw message