You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by ge...@apache.org on 2005/02/09 15:29:53 UTC

svn commit: r153066 - struts/core/trunk/src/test/org/apache/struts/chain/commands/generic/TestWrappingLookupCommand.java

Author: germuska
Date: Wed Feb  9 06:29:52 2005
New Revision: 153066

URL: http://svn.apache.org/viewcvs?view=rev&rev=153066
Log:
remove test method which caused instantiation of ActionContextBase, since that class is now abstract.  
The class under test may not be long for Struts anyway, so I'm not worried about fixing the test.

Modified:
    struts/core/trunk/src/test/org/apache/struts/chain/commands/generic/TestWrappingLookupCommand.java

Modified: struts/core/trunk/src/test/org/apache/struts/chain/commands/generic/TestWrappingLookupCommand.java
URL: http://svn.apache.org/viewcvs/struts/core/trunk/src/test/org/apache/struts/chain/commands/generic/TestWrappingLookupCommand.java?view=diff&r1=153065&r2=153066
==============================================================================
--- struts/core/trunk/src/test/org/apache/struts/chain/commands/generic/TestWrappingLookupCommand.java (original)
+++ struts/core/trunk/src/test/org/apache/struts/chain/commands/generic/TestWrappingLookupCommand.java Wed Feb  9 06:29:52 2005
@@ -19,10 +19,10 @@
 package org.apache.struts.chain.commands.generic;
 
 import junit.framework.TestCase;
+
 import org.apache.commons.chain.Context;
 import org.apache.commons.chain.impl.ContextBase;
 import org.apache.commons.chain.web.servlet.ServletWebContext;
-import org.apache.struts.chain.contexts.ActionContextBase;
 import org.apache.struts.chain.contexts.ServletActionContext;
 
 /* JUnitTest case for class: org.apache.struts.chain.commands.generic.WrappingLookupCommand */
@@ -47,16 +47,6 @@
         Context wrapped = command.getContext(testContext);
         assertNotNull(wrapped);
         assertSame(testContext, wrapped);
-    }
-
-    public void testWrapper() throws Exception {
-        WrappingLookupCommand command = new WrappingLookupCommand();
-        command.setWrapperClassName(ActionContextBase.class.getName());
-        Context testContext = new ContextBase();
-
-        Context wrapped = command.getContext(testContext);
-        assertNotNull(wrapped);
-        assertTrue(wrapped instanceof ActionContextBase);
     }
 
     public void testWrapContextSubclass() throws Exception {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org