use of org.jboss.weld.environment.se.StartMain in project kie-wb-common by kiegroup.
the class PackageDataModelDeclaredTypesTest method setUp.
@Before
public void setUp() throws Exception {
// Bootstrap WELD container
StartMain startMain = new StartMain(new String[0]);
beanManager = startMain.go().getBeanManager();
// Instantiate Paths used in tests for Path conversion
final Bean pathsBean = (Bean) beanManager.getBeans(Paths.class).iterator().next();
final CreationalContext cc = beanManager.createCreationalContext(pathsBean);
paths = (Paths) beanManager.getReference(pathsBean, Paths.class, cc);
// Ensure URLs use the default:// scheme
fs.forceAsDefault();
}
Aggregations