myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jak...@apache.org
Subject svn commit: r959965 - /myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/webapp/Jsp21FacesInitializerTest.java
Date Fri, 02 Jul 2010 12:33:41 GMT
Author: jakobk
Date: Fri Jul  2 12:33:40 2010
New Revision: 959965

URL: http://svn.apache.org/viewvc?rev=959965&view=rev
Log:
fixed NPE in test case + added TODO

Modified:
    myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/webapp/Jsp21FacesInitializerTest.java

Modified: myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/webapp/Jsp21FacesInitializerTest.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/webapp/Jsp21FacesInitializerTest.java?rev=959965&r1=959964&r2=959965&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/webapp/Jsp21FacesInitializerTest.java
(original)
+++ myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/webapp/Jsp21FacesInitializerTest.java
Fri Jul  2 12:33:40 2010
@@ -18,35 +18,47 @@
  */
 package org.apache.myfaces.webapp;
 
-import junit.framework.TestCase;
+import static org.easymock.EasyMock.anyObject;
+import static org.easymock.EasyMock.eq;
+import static org.easymock.EasyMock.expect;
+import static org.easymock.EasyMock.expectLastCall;
+import static org.easymock.EasyMock.isA;
+
+import javax.el.ExpressionFactory;
+import javax.faces.webapp.FacesServlet;
+import javax.servlet.ServletContext;
+import javax.servlet.jsp.JspApplicationContext;
+import javax.servlet.jsp.JspFactory;
+
 import org.apache.myfaces.config.RuntimeConfig;
 import org.apache.myfaces.el.DefaultPropertyResolver;
 import org.apache.myfaces.el.VariableResolverImpl;
 import org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver;
-import static org.easymock.EasyMock.*;
+import org.apache.myfaces.test.base.AbstractJsfTestCase;
 import org.easymock.IAnswer;
 import org.easymock.classextension.EasyMock;
 import org.easymock.classextension.IMocksControl;
 
-import javax.el.ExpressionFactory;
-import javax.faces.webapp.FacesServlet;
-import javax.servlet.ServletContext;
-import javax.servlet.jsp.JspApplicationContext;
-import javax.servlet.jsp.JspFactory;
-
 /**
  * @author Mathias Broekelmann (latest modification by $Author: baranda $)
  * @version $Revision: 532019 $ $Date: 2007-04-24 19:34:36 +0200 (Di, 24 Apr 2007) $
  */
-public class Jsp21FacesInitializerTest extends TestCase
+public class Jsp21FacesInitializerTest extends AbstractJsfTestCase
 {
 
+    public Jsp21FacesInitializerTest(String name)
+    {
+        super(name);
+    }
+
     /**
      * Test method for {@link org.apache.myfaces.webapp.DefaultFacesInitializer#initFaces(javax.servlet.ServletContext)}.
      * @throws Exception 
      */
     public void testInitFaces() throws Exception
     {
+        // TODO adapt this test case for MyFaces 2.0, because currently it checks nothing!
+        
         Jsp21FacesInitializer initializer = new Jsp21FacesInitializer();
         IMocksControl control = EasyMock.createControl();
         



Mime
View raw message