@Override
  protected void setUp() throws Exception {
    super.setUp();
    converter = container.getInstance(XWorkConverter.class);

    ac = ActionContext.getContext();
    ac.setLocale(Locale.US);
    context = ac.getContextMap();
  }
Пример #2
0
  @Override
  protected void setUp() throws Exception {
    super.setUp();

    // ensure we're using the default configuration, not simple config
    XmlConfigurationProvider configurationProvider =
        new XmlConfigurationProvider("xwork-sample.xml");
    container.inject(configurationProvider);
    loadConfigurationProviders(configurationProvider);
  }
 /** Set up instance variables required by this test case. */
 @Override
 public void setUp() throws Exception {
   super.setUp();
   inter = new ScopedModelDrivenInterceptor();
   inter.setObjectFactory(new ProxyObjectFactory());
 }