01: package com.mockrunner.mock.web;
02:
03: import org.apache.struts.config.MessageResourcesConfig;
04: import org.apache.struts.config.impl.ModuleConfigImpl;
05:
06: /**
07: * Mock implementation of <code>ModuleConfig</code>.
08: */
09: public class MockModuleConfig extends ModuleConfigImpl {
10: public MockModuleConfig(String prefix) {
11: super (prefix);
12: }
13:
14: /**
15: * Clears all message resource configs.
16: */
17: public void clearMessageResourcesConfigs() {
18: MessageResourcesConfig[] configs = findMessageResourcesConfigs();
19: if (null != configs) {
20: for (int ii = 0; ii < configs.length; ii++) {
21: removeMessageResourcesConfig(configs[ii]);
22: }
23: }
24: }
25: }
|