void (@NotNull TestNGConfiguration config) { model.apply(getModuleSelector().getModule(), config); getModuleSelector().applyTo(config); TestData data = config.getPersistantData(); final TestType testKind = (TestType)myTestKind.getSelectedItem(); if (testKind != TestType.CLASS && testKind != TestType.METHOD && testKind != TestType.SOURCE) { if (packagesInProject.isSelected()) { data.setScope(TestSearchScope.WHOLE_PROJECT); } else if (packagesInModule.isSelected()) { data.setScope(TestSearchScope.SINGLE_MODULE); } else if (packagesAcrossModules.isSelected()) data.setScope(TestSearchScope.MODULE_WITH_DEPENDENCIES); } else { data.setScope(TestSearchScope.MODULE_WITH_DEPENDENCIES); } commonJavaParameters.applyTo(config); config.setAlternativeJrePath(alternateJDK.getJrePathOrName()); config.ALTERNATIVE_JRE_PATH_ENABLED = alternateJDK.isAlternativeJreSelected(); data.TEST_PROPERTIES.clear(); for (Map.Entry<String, String> entry : propertiesList) { data.TEST_PROPERTIES.put(entry.getKey(), entry.getValue()); } data.TEST_LISTENERS.clear(); data.TEST_LISTENERS.addAll(listenerModel.getListenerList()); data.USE_DEFAULT_REPORTERS = myUseDefaultReportersCheckBox.isSelected(); config.setShortenCommandLine(myShortenCommandLineCombo.getComponent().getSelectedItem()); config.setUseModulePath(myUseModulePath.isVisible() && myUseModulePath.getComponent().isSelected()); }