mirror of
https://github.com/apache/struts.git
synced 2026-08-13 10:37:20 +00:00
Adding new settings to disable classpath action scanning for the codebehind and rest plugins
WW-2506 git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@649873 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+11
@@ -74,6 +74,17 @@ public class ClasspathPackageProviderTest extends TestCase {
|
||||
ActionConfig actionConfig = (ActionConfig) configs.get("customParentPackage");
|
||||
assertNotNull(actionConfig);
|
||||
}
|
||||
|
||||
public void testDisableScanning() {
|
||||
provider = new ClasspathPackageProvider();
|
||||
provider.setActionPackages("org.apache.struts2.config");
|
||||
provider.setDisableActionScanning("true");
|
||||
config = new DefaultConfiguration();
|
||||
provider.init(config);
|
||||
provider.loadPackages();
|
||||
|
||||
assertEquals(0, config.getPackageConfigs().size());
|
||||
}
|
||||
|
||||
public void testParentPackage() {
|
||||
PackageConfig pkg = config.getPackageConfig("org.apache.struts2.config");
|
||||
|
||||
Reference in New Issue
Block a user