コード例 #1
0
 @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);
 }
コード例 #3
0
 public void checkConfiguration() throws RuntimeConfigurationException {
   myData.getTestObject(getProject(), this).checkConfiguration();
   JavaRunConfigurationExtensionManager.checkConfigurationIsValid(this);
 }