private URL applicationSCDL;
protected void setUp() throws Exception {
super.setUp();
ClassLoader cl = getClass().getClassLoader();
LauncherImpl launcher = new LauncherImpl();
launcher.setApplicationLoader(cl);
CompositeComponent composite = launcher.bootRuntime(cl.getResource(LauncherImpl.METAINF_SYSTEM_SCDL_PATH),
new NullMonitorFactory());
for (String extensionName : extensions.keySet()) {
deployExtension(composite, extensionName, extensions.get(extensionName));
}
if (applicationSCDL == null) {
throw new RuntimeException("application SCDL not found: " + applicationSCDL);
}
component = launcher.bootApplication("application", applicationSCDL);
component.start();
context = new CompositeContextImpl(component);
context.start();
}