mirror of
https://github.com/apache/struts.git
synced 2026-08-31 19:35:40 +00:00
improve testcase code
git-svn-id: https://svn.apache.org/repos/asf/incubator/webwork2@394319 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -40,7 +40,6 @@ import com.opensymphony.xwork.config.ConfigurationManager;
|
||||
public class FormTagTest extends AbstractUITagTest {
|
||||
|
||||
public void testForm() throws Exception {
|
||||
ObjectFactory.setObjectFactory(new MyObjectFactory());
|
||||
|
||||
request.setupGetServletPath("/testAction");
|
||||
|
||||
@@ -367,8 +366,4 @@ public class FormTagTest extends AbstractUITagTest {
|
||||
ConfigurationManager.addConfigurationProvider(new TestConfigurationProvider());
|
||||
ActionContext.getContext().setValueStack(stack);
|
||||
}
|
||||
|
||||
static class MyObjectFactory extends ObjectFactory {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,7 +38,6 @@ public class TooltipTest extends AbstractUITagTest {
|
||||
|
||||
ConfigurationManager.clearConfigurationProviders();
|
||||
ConfigurationManager.addConfigurationProvider(new TestConfigurationProvider());
|
||||
ObjectFactory.setObjectFactory(new MyObjectFactory());
|
||||
|
||||
|
||||
// we test it on textfield component, but since the tooltip are common to
|
||||
@@ -378,8 +377,4 @@ public class TooltipTest extends AbstractUITagTest {
|
||||
|
||||
verify(TooltipTest.class.getResource("tooltip-3.txt"));
|
||||
}
|
||||
|
||||
static class MyObjectFactory extends ObjectFactory {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user