* the mcs-config.xml file by Volantis initialisation.
*
* @throws Exception
*/
public void testInitializeBasicAndXMLRepositoryValues() throws Exception {
ConfigChecker checker =
new ConfigChecker(volantis, servletContext);
checker.setAppConf(new MinimalXmlRepositoryAppConfigurator() {
public void setUp(ConfigValue config) throws Exception {
super.setUp(config);
// Create a basic, valid set of configuration values.
// (We do this from scratch rather than reuse another
// configurator instance to ensure we get everything.)
// Simple attributes
// config.licenseDirectory provided by superclass
config.pageMessageHeading = "a nice new message";
// Base directories
config.chartImagesBase = "somechartimages";
config.modesetsBase = "somemodesets";
config.scriptsBase = "somescripts";
// Local repository
// config.repositoryType provided by superclass
// config.repositoryXmlFile provided by superclass
// Default asset url prefixes
config.audioUrlPrefix = "/audio/";
config.dynvisUrlPrefix = "/dynvis/";
config.imageUrlPrefix = "/images/";
config.scriptUrlPrefix = "/scripts/";
config.textUrlPrefix = "/text/";
// App server related
config.internalUrl = "exampleInternalUrl";
config.baseUrl = "exampleBaseUrl";
config.pageBase = "examplePageBase";
// Stylesheet related
config.styleBaseUrl = "exampleBaseUrl";
// config.styleCacheEnabled = Boolean.TRUE; requires theme caching too
// Debug related
config.debugComments = Boolean.TRUE;
config.debugLogPageOutput = Boolean.TRUE;
// Log4j
// config.log4jXmlConfigFile provided by superclass
}
});
checker.checkInitialisation();
}