use of org.codice.ddf.test.common.annotations.PostTestConstruct in project ddf by codice.
the class AbstractIntegrationTest method initFacades.
@SuppressWarnings({ "squid:S2696" /* writing to static ddfHome to share state between test methods */
})
@PostTestConstruct
public void initFacades() {
RestAssured.config = RestAssuredConfig.config().xmlConfig(XmlConfig.xmlConfig().namespaceAware(false));
ddfHome = System.getProperty(DDF_HOME_PROPERTY);
adminConfig = new AdminConfig(configAdmin);
Security security = new org.codice.ddf.security.impl.Security();
((org.codice.ddf.security.impl.Security) security).setSecurityLogger(new SecurityLoggerImpl(new SubjectUtils()));
// This proxy runs the service manager as the system subject
serviceManager = (ServiceManager) Proxy.newProxyInstance(AbstractIntegrationTest.class.getClassLoader(), ServiceManagerImpl.class.getInterfaces(), new ServiceManagerProxy(new ServiceManagerImpl(metatype, adminConfig, bundleContext, bundleService, features), security));
catalogBundle = new CatalogBundle(serviceManager, adminConfig);
securityPolicy = new SecurityPolicyConfigurator(serviceManager, configAdmin);
urlResourceReaderConfigurator = new UrlResourceReaderConfigurator(configAdmin);
console = new KarafConsole(bundleContext, features, sessionFactory);
}
Aggregations