@Override
 public void checkConfiguration() throws RuntimeConfigurationException {
   final TestNGTestObject testObject = TestNGTestObject.fromConfig(this);
   if (testObject != null) {
     testObject.checkConfiguration();
   }
   JavaRunConfigurationExtensionManager.checkConfigurationIsValid(this);
   ProgramParametersUtil.checkWorkingDirectoryExist(
       this, getProject(), getConfigurationModule().getModule());
   JavaParametersUtil.checkAlternativeJRE(this);
   // TODO add various checks here
 }
예제 #2
0
 @Override
 public void checkConfiguration() throws RuntimeConfigurationException {
   JavaParametersUtil.checkAlternativeJRE(this);
   final String className = MAIN_CLASS_NAME;
   if (className == null || className.length() == 0) {
     throw new RuntimeConfigurationError(
         ExecutionBundle.message("no.main.class.specified.error.text"));
   }
   if (SCRATCH_FILE_ID <= 0) {
     throw new RuntimeConfigurationError("No scratch file associated with configuration");
   }
   if (getScratchVirtualFile() == null) {
     throw new RuntimeConfigurationError("Associated scratch file not found");
   }
   ProgramParametersUtil.checkWorkingDirectoryExist(
       this, getProject(), getConfigurationModule().getModule());
   JavaRunConfigurationExtensionManager.checkConfigurationIsValid(this);
 }
 public void checkConfiguration() throws RuntimeConfigurationException {
   myData.getTestObject(getProject(), this).checkConfiguration();
   JavaRunConfigurationExtensionManager.checkConfigurationIsValid(this);
 }