super(name);
ServiceManager serviceManager = TurbineServices.getInstance();
serviceManager.setApplicationRoot(".");
Configuration cfg = new BaseConfiguration();
cfg.setProperty(PREFIX + "classname",
TurbineCryptoService.class.getName());
cfg.setProperty(PREFIX + "algorithm.unix",
UnixCrypt.class.getName());
cfg.setProperty(PREFIX + "algorithm.clear",
ClearCrypt.class.getName());
cfg.setProperty(PREFIX + "algorithm.java",
JavaCrypt.class.getName());
cfg.setProperty(PREFIX + "algorithm.oldjava",
OldJavaCrypt.class.getName());
/* Do _not_ configure a default! We want to test explicitly */
cfg.setProperty(PREFIX + "algorithm.default",
"none");
/* Ugh */
cfg.setProperty("services." + FactoryService.SERVICE_NAME + ".classname",
TurbineFactoryService.class.getName());
serviceManager.setConfiguration(cfg);
try