Class CreateTestMeAction

  • All Implemented Interfaces:
    com.intellij.codeInsight.intention.FileModifier, com.intellij.codeInsight.intention.IntentionAction, com.intellij.openapi.application.WriteActionAware

    public class CreateTestMeAction
    extends com.intellij.testIntegration.createTest.CreateTestAction
    Date: 10/18/2016
    Author:
    Yaron Yamin
    See Also:
    CreateTestAction
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.intellij.codeInsight.intention.FileModifier

        com.intellij.codeInsight.intention.FileModifier.SafeFieldForPreview
    • Field Summary

      • Fields inherited from interface com.intellij.codeInsight.intention.IntentionAction

        EMPTY_ARRAY
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.String> computeSuitableTestRootUrls​(com.intellij.openapi.module.Module module)  
      static java.util.List<com.intellij.openapi.vfs.VirtualFile> computeTestRoots​(@NotNull com.intellij.openapi.module.Module mainModule)  
      static @Nullable com.intellij.psi.PsiClass getContainingClass​(com.intellij.psi.PsiElement element)  
      @NotNull java.lang.String getFamilyName()  
      @NotNull java.lang.String getText()  
      void invoke​(@NotNull com.intellij.openapi.project.Project project, com.intellij.openapi.editor.Editor editor, @NotNull com.intellij.psi.PsiElement element)  
      • Methods inherited from class com.intellij.testIntegration.createTest.CreateTestAction

        checkForTestRoots, createTestDialog, isAvailable, isAvailableForElement, startInWriteAction, suggestModuleForTests
      • Methods inherited from class com.intellij.codeInsight.intention.PsiElementBaseIntentionAction

        checkFile, invoke, isAvailable
      • Methods inherited from class com.intellij.codeInsight.intention.impl.BaseIntentionAction

        canModify, setText, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.intellij.codeInsight.intention.FileModifier

        getElementToMakeWritable, getFileModifierForPreview
    • Constructor Detail

      • CreateTestMeAction

        public CreateTestMeAction​(TemplateDescriptor templateDescriptor)
    • Method Detail

      • getText

        @NotNull
        public @NotNull java.lang.String getText()
        Specified by:
        getText in interface com.intellij.codeInsight.intention.IntentionAction
        Overrides:
        getText in class com.intellij.testIntegration.createTest.CreateTestAction
      • getFamilyName

        @NotNull
        public @NotNull java.lang.String getFamilyName()
        Specified by:
        getFamilyName in interface com.intellij.codeInsight.intention.IntentionAction
        Overrides:
        getFamilyName in class com.intellij.testIntegration.createTest.CreateTestAction
      • invoke

        public void invoke​(@NotNull
                           @NotNull com.intellij.openapi.project.Project project,
                           com.intellij.openapi.editor.Editor editor,
                           @NotNull
                           @NotNull com.intellij.psi.PsiElement element)
                    throws com.intellij.util.IncorrectOperationException
        Overrides:
        invoke in class com.intellij.testIntegration.createTest.CreateTestAction
        Throws:
        com.intellij.util.IncorrectOperationException
      • computeSuitableTestRootUrls

        public static java.util.List<java.lang.String> computeSuitableTestRootUrls​(com.intellij.openapi.module.Module module)
        See Also:
        CreateTestAction.computeSuitableTestRootUrls(com.intellij.openapi.module.Module)
      • computeTestRoots

        public static java.util.List<com.intellij.openapi.vfs.VirtualFile> computeTestRoots​(@NotNull
                                                                                            @NotNull com.intellij.openapi.module.Module mainModule)
        See Also:
        CreateTestAction.computeTestRoots(com.intellij.openapi.module.Module)
      • getContainingClass

        @Nullable
        public static @Nullable com.intellij.psi.PsiClass getContainingClass​(com.intellij.psi.PsiElement element)
        See Also:
        base method used to be private in IJ 14