@Override
public Container getContainer() {
return mockContainer;
}
};
PackageConfig strutsDefault = makePackageConfig("beangle", null, null, "dispatcher", null, null, null);
configuration.addPackageConfig("beangle", strutsDefault);
// ResultMapBuilder resultMapBuilder =
// createStrictMock(ResultMapBuilder.class);
// set beans on mock container
mockContainer.setActionNameBuilder(actionNameBuilder);
// mockContainer.setResultMapBuilder(resultMapBuilder);
// mockContainer.setConventionsService(new ConventionsServiceImpl(""));
SmartActionConfigBuilder builder = new SmartActionConfigBuilder(configuration, mockContainer, of);
builder.setActionBuilder(actionNameBuilder);
builder.buildActionConfigs();
Set<String> names = configuration.getPackageConfigNames();
for (String a : names) {
System.out.println("pkgname:" + a);
PackageConfig pkgConfig = configuration.getPackageConfig(a);
System.out.println("namespace:" + pkgConfig.getNamespace());
Map<String, ActionConfig> configs = pkgConfig.getAllActionConfigs();
for (String actionName : configs.keySet()) {
ActionConfig config = configs.get(actionName);
System.out.println(config.getClassName());
System.out.println(config.getName());
System.out.println(config.getMethodName());