void () { final String path = PathManagerEx.getTestDataPath() + File.separator + "facet" + File.separator + "detection" + File.separator + getTestName(true); final File root = new File(path); FrameworkDetectionProcessor processor = new FrameworkDetectionProcessor(new MockProgressIndicator(), new FrameworkDetectionInWizardContext() { @Override protected List<ModuleDescriptor> getModuleDescriptors() { final ModuleDescriptor descriptor = new ModuleDescriptor(root, StdModuleTypes.JAVA, new JavaModuleSourceRoot(root, null, "java")); descriptor.setName(myModule.getName()); return Collections.singletonList(descriptor); } @NotNull @Override protected String getContentPath() { return FileUtil.toSystemIndependentName(path); } }); final List<? extends DetectedFrameworkDescription> descriptions = processor.processRoots(Collections.singletonList(root)); setupFrameworks(descriptions); }