Exemple #1
0
 @Override
 public void onSuccess() {
   if (myOutputFile != null && myOutputFile.exists()) {
     AbstractImportTestsAction.adjustHistory(myProject);
     TestHistoryConfiguration.getInstance(myProject)
         .registerHistoryItem(
             myOutputFile.getName(),
             myConfiguration.getName(),
             myConfiguration.getType().getId());
   }
 }
 /**
  * Returns original {@link RunConfiguration} from this context. For example, it could be some test
  * framework runtime configuration that had been launched and that had brought a result test tree
  * on which a right-click action was performed.
  *
  * @param type {@link ConfigurationType} instance to filter original runtime configuration by its
  *     type
  * @return {@link RunConfiguration} instance, it could be null
  */
 @Nullable
 public RunConfiguration getOriginalConfiguration(@Nullable ConfigurationType type) {
   if (type == null) {
     return myRuntimeConfiguration;
   }
   if (myRuntimeConfiguration != null
       && ConfigurationTypeUtil.equals(myRuntimeConfiguration.getType(), type)) {
     return myRuntimeConfiguration;
   }
   return null;
 }