use of org.kie.workbench.common.services.shared.project.KieModuleService in project kie-wb-common by kiegroup.
the class ModuleServiceImplResolvePackageValidTest method testResolvePackageWithRootPath.
@Test
public void testResolvePackageWithRootPath() throws Exception {
final Bean moduleServiceBean = (Bean) beanManager.getBeans(KieModuleService.class).iterator().next();
final CreationalContext cc = beanManager.createCreationalContext(moduleServiceBean);
final KieModuleService moduleService = (KieModuleService) beanManager.getReference(moduleServiceBean, KieModuleService.class, cc);
final URL rootUrl = this.getClass().getResource("/ModuleBackendTestModuleStructureValid");
final org.uberfire.java.nio.file.Path nioRootPath = fs.getPath(rootUrl.toURI());
final Path rootPath = paths.convert(nioRootPath);
// Test a root resolves to null
final Package result = moduleService.resolvePackage(rootPath);
assertNull(result);
}
use of org.kie.workbench.common.services.shared.project.KieModuleService in project drools-wb by kiegroup.
the class ScenarioRunnerServiceTest method setUp.
@Before
public void setUp() throws Exception {
final ConfigurationService configurationService = mock(ConfigurationService.class);
final KieModuleService moduleService = mock(KieModuleService.class);
service = new ScenarioRunnerService(configurationService, sessionService, moduleService, scenarioLoader);
}
Aggregations