You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by aj...@apache.org on 2008/08/13 08:08:44 UTC

svn commit: r685454 - /incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/TestEngine.java

Author: ajaquith
Date: Tue Aug 12 23:08:43 2008
New Revision: 685454

URL: http://svn.apache.org/viewvc?rev=685454&view=rev
Log:
Fixed failing unit tests. Now at parity with trunk except for 5 TOC tests and the stress test.

Modified:
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/TestEngine.java

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/TestEngine.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/TestEngine.java?rev=685454&r1=685453&r2=685454&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/TestEngine.java (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/TestEngine.java Tue Aug 12 23:08:43 2008
@@ -5,6 +5,7 @@
 import java.util.Map;
 import java.util.Properties;
 
+import javax.servlet.ServletContext;
 import javax.servlet.http.HttpServletRequest;
 
 import net.sourceforge.stripes.controller.DispatcherServlet;
@@ -111,10 +112,10 @@
         super( new MockServletContext( "test" ), "test", cleanTestProps( props ) );
         
         // Stash the WikiEngine in the servlet context
-        MockServletContext servletContext = (MockServletContext)this.getServletContext();
+        ServletContext servletContext = this.getServletContext();
         servletContext.setAttribute("com.ecyrd.jspwiki.WikiEngine", this);
     }
-    
+
     /**
      * Creates a correctly-instantiated mock HttpServletRequest with an associated
      * HttpSession.