Interface CodeInsightFixtureSpecTestCase
-
- All Superinterfaces:
com.vladsch.flexmark.test.util.SpecExampleProcessor,SpecTest
- All Known Subinterfaces:
LightFixtureActionSpecTest,LightFixtureIntentionSpecTest,LightFixtureLineMarkerSpecTest
- All Known Implementing Classes:
JavaCodeInsightFixtureSpecTestCase,LightJavaCodeInsightFixtureSpecTestCase,LightPlatformCodeInsightFixtureSpecTestCase
public interface CodeInsightFixtureSpecTestCase extends SpecTest
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBANNER_AFTER_ACTIONstatic java.lang.StringBANNER_ASTstatic java.lang.StringBANNER_AST_AFTER_ACTIONstatic java.lang.StringBANNER_AST_BEFORE_ACTIONstatic java.lang.StringBANNER_BEFORE_ACTIONstatic java.lang.StringBANNER_CLIPBOARDstatic java.lang.StringBANNER_QUICK_FIXESstatic java.lang.StringBANNER_RANGESstatic java.lang.StringBANNER_SEGMENTSstatic com.vladsch.flexmark.test.util.ExceptionMatcherEXCEPTION_MATCHERstatic java.util.Map<java.lang.String,com.vladsch.flexmark.util.data.DataHolder>optionsMapstatic com.vladsch.flexmark.util.data.DataKey<java.lang.Boolean>TEST_CARET_MARKUP-
Fields inherited from interface com.vladsch.plugin.test.util.cases.SpecTest
ADDITIONAL_PROJECT_FILES, ADDITIONAL_PROJECT_FILES_OPTION, CODE_STYLE_SETTINGS, CODE_STYLE_SETTINGS_OPTION, CUSTOM_OPTION, DEBUG_LOG_SETTINGS, DEBUG_LOG_SETTINGS_OPTION, EMBED_TIMED, EXAMPLE_SOURCE_EXTENSION, EXAMPLE_SOURCE_NAME, FAIL, IGNORE, LINE_MARKER_SETTINGS, LINE_MARKER_SETTINGS_OPTION, NO_FILE_EOL, TIMED, TIMED_ITERATIONS, WANT_AST, WANT_QUICK_FIXES, WANT_RANGES
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidaddFullSpecExample(@NotNull com.vladsch.flexmark.test.util.SpecExampleRenderer exampleRenderer, @NotNull com.vladsch.flexmark.test.util.SpecExampleParse exampleParse, @Nullable com.vladsch.flexmark.util.data.DataHolder exampleOptions, boolean ignoredTestCase, @NotNull java.lang.String html, @Nullable java.lang.String ast)Called from dumpSpecReader as it is accumulating testsvoidaddSuppressedException(@NotNull java.lang.Throwable e)Add a suppressed exceptionbooleanannotatedWith(@NotNull java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)static voidappendBanner(@NotNull java.lang.StringBuilder out, @NotNull java.lang.String banner)static voidappendBannerIfNeeded(@NotNull java.lang.StringBuilder out, @NotNull java.lang.String banner)default com.vladsch.flexmark.util.data.DataHolderappendDefaultExampleOptions(@NotNull com.vladsch.flexmark.test.util.spec.SpecExample example, @Nullable com.vladsch.flexmark.util.data.DataHolder options, @NotNull java.lang.String optionsText)Used to add default example options as textvoidassertNoThrowable(@NotNull java.lang.Runnable closure)static @NotNull java.lang.StringbannerText(@NotNull java.lang.String message)default voidbeforeDoHighlighting(@NotNull LightFixtureSpecRenderer<?> specRenderer, @NotNull com.intellij.psi.PsiFile file)Called before do highlighting is called on the filedefault @NotNull com.vladsch.flexmark.test.util.spec.SpecExamplecheckExample(@NotNull com.vladsch.flexmark.test.util.spec.SpecExample example)Called to allow customizing the example before it is used for testsstatic voidclearFields(@NotNull java.lang.Object test)default voidcloseOpenFile(@NotNull LightFixtureSpecRenderer<?> specRenderer)default com.vladsch.flexmark.util.misc.Pair<java.lang.String,java.lang.String>collectAndCheckHighlighting(@NotNull LightFixtureSpecRenderer<?> specRenderer, boolean checkLineMarkers, boolean checkWarnings, boolean checkInfos, boolean checkWeakWarnings, boolean ignoreExtraHighlighting)default com.vladsch.flexmark.util.misc.Pair<java.lang.String,java.lang.String>collectAndCheckHighlighting(@NotNull LightFixtureSpecRenderer<?> specRenderer, @NotNull com.intellij.testFramework.ExpectedHighlightingData data, boolean checkLineMarkers)static voidcollectIntentionActions(@Nullable java.lang.Integer atOffset, com.intellij.codeInsight.daemon.impl.HighlightInfo info, boolean fileLevel, @NotNull com.intellij.openapi.editor.Editor editor, @NotNull com.intellij.psi.PsiFile file, java.util.List<IntentionInfo> intentions)default @NotNull com.vladsch.flexmark.test.util.DumpSpecReadercreate(@NotNull com.vladsch.flexmark.test.util.spec.ResourceLocation location)crate a DumpSpecReader for the given resource location and file resourceLightFixtureSpecRenderer<?>createExampleSpecRenderer(@NotNull com.vladsch.flexmark.test.util.spec.SpecExample example, @Nullable com.vladsch.flexmark.util.data.DataHolder options)default com.intellij.openapi.vfs.VirtualFilecreateImageFile(java.lang.String fileName, java.io.InputStream content)Create image filecom.intellij.psi.PsiFilecreateLightFile(com.intellij.openapi.fileTypes.FileType fileType, java.lang.String text)Create a light file for the given textcom.intellij.psi.PsiFilecreateLightFile(java.lang.String fileName, com.intellij.lang.Language language, java.lang.String text)Create a light file for the given textstatic @Nullable com.vladsch.flexmark.util.data.DataHolder[]dataHolders(@Nullable com.vladsch.flexmark.util.data.DataHolder other, @Nullable com.vladsch.flexmark.util.data.DataHolder[] overrides)voiddefaultRunBare(@NotNull com.intellij.util.ThrowableRunnable<java.lang.Throwable> testRunnable)default voiddefaultTestCase()<T extends com.intellij.openapi.Disposable>
TdisposeOnTearDown(T disposable)default voidexecuteAction(@NonNls @NotNull java.lang.String actionId)default voidexecuteAction(@NonNls @NotNull java.lang.String actionId, @NotNull com.intellij.openapi.editor.Editor editor)static voidexecuteAction(@NonNls @NotNull java.lang.String actionId, @NotNull com.intellij.openapi.editor.Editor editor, com.intellij.openapi.project.Project project)static voidexecuteAction(@NotNull com.intellij.openapi.editor.Editor editor, boolean assertActionIsEnabled, @NotNull com.intellij.openapi.actionSystem.AnAction action)static voidexecuteKeystroke(@NotNull com.intellij.openapi.editor.Editor editor, @NotNull javax.swing.KeyStroke stroke)<T extends CodeInsightFixtureSpecTestCase>
voidfinalizeRenderer(@NotNull LightFixtureSpecRenderer<T> specRenderer, @NotNull com.vladsch.flexmark.util.data.DataHolder specRendererOptions)Reset extra settings for next test and clean up any resourcesdefault voidfullTestSpecComplete()Called from dumpSpecReader as it is accumulating tests, to signal end of full test specdefault voidfullTestSpecStarting()Called from dumpSpecReader as it is accumulating tests to signal start of full test specstatic @NotNull java.lang.StringgetActualLineMarkerFileText(@NotNull com.intellij.openapi.editor.Document myDocument, @NotNull java.util.Collection<? extends com.intellij.codeInsight.daemon.LineMarkerInfo> markerInfos, @NotNull java.util.function.Function<javax.swing.Icon,java.lang.String> iconResolver)default @NotNull java.util.List<IntentionInfo>getAvailableIntentionsWithRanges(@NotNull LightFixtureSpecRenderer<?> specRenderer, @NotNull com.intellij.openapi.editor.Editor editor, @NotNull com.intellij.psi.PsiFile file, boolean atCaretOnly)default intgetCaretOffset()Returns the offset of the caret in the in-memory editor instance.@NotNull com.vladsch.flexmark.util.data.DataHoldergetDefaultOptions()Get default options for the testsdefault com.intellij.openapi.editor.ex.EditorExgetEditor()Returns the editor currently opened in the in-memory editor.@NotNull com.vladsch.flexmark.test.util.spec.SpecExamplegetExample()Get the current spec examplestatic @NotNull java.lang.StringgetExampleFileName(@NotNull java.lang.Class<?> testCaseClass, @NotNull com.vladsch.flexmark.test.util.spec.SpecExample example, @NotNull com.vladsch.flexmark.util.data.DataHolder options)static @NotNull java.lang.StringgetExampleName(@NotNull com.vladsch.flexmark.test.util.spec.SpecExample example)default com.intellij.psi.PsiFilegetFile()Returns the file currently loaded into the in-memory editor.com.intellij.testFramework.fixtures.CodeInsightTestFixturegetFixture()@NotNull java.lang.StringgetHomePath()default com.intellij.psi.PsiFilegetHostFile()@NotNull com.intellij.openapi.module.ModulegetModule()Get Module for the teststatic java.util.Map<java.lang.String,com.vladsch.flexmark.util.data.DataHolder>getOptionsMap()com.intellij.openapi.project.ProjectgetProject()com.intellij.psi.PsiManagergetPsiManager()Get PsiManager for the testdefault @NotNull java.lang.StringgetResultTextWithMarkup(boolean withCarets, boolean withTestCaretMarkup)default @NotNull java.lang.StringgetResultTextWithMarkup(@NotNull com.intellij.openapi.editor.Editor editor, boolean withCarets, boolean withTestCaretMarkup)default @NotNull LightFixtureSpecRenderer<?>getSpecExampleRenderer(@NotNull com.vladsch.flexmark.test.util.spec.SpecExample example, @Nullable com.vladsch.flexmark.util.data.DataHolder exampleOptions)Create spec renderer for example@NotNull com.intellij.testFramework.fixtures.TempDirTestFixturegetTempDirFixture()@NotNull java.lang.StringgetTestDirectoryName()@NotNull java.lang.StringgetTestName(boolean lowercaseFirstLetter)@NotNull com.intellij.openapi.DisposablegetTestRootDisposable()static @NotNull java.util.List<java.lang.Object[]>getTests(@NotNull com.vladsch.flexmark.test.util.spec.ResourceLocation location)@NotNull org.junit.rules.ExpectedExceptiongetThrown()<T extends CodeInsightFixtureSpecTestCase>
voidinitializeRenderer(@NotNull LightFixtureSpecRenderer<T> specRenderer)Load extra settings and initialize spec renderer for parsebooleanisIconRequired()booleanisPerformanceTest()booleanisStressTest()com.intellij.openapi.diagnostic.LoggerLOG()Get logger for the teststatic @Nullable java.util.Map<java.lang.String,? extends com.vladsch.flexmark.util.data.DataHolder>optionsMaps(@Nullable java.util.Map<java.lang.String,? extends com.vladsch.flexmark.util.data.DataHolder> other, @Nullable java.util.Map<java.lang.String,? extends com.vladsch.flexmark.util.data.DataHolder> overrides)static voidremoveDuplicatedRangesForInjected(@NotNull java.util.List<? extends com.intellij.codeInsight.daemon.impl.HighlightInfo> infos)<T extends CodeInsightFixtureSpecTestCase>
voidrenderSpecTestAst(@NotNull java.lang.StringBuilder ast, @NotNull LightFixtureSpecRenderer<T> specRenderer, @NotNull com.vladsch.flexmark.util.data.DataHolder specRendererOptions)Add extra rendered info to spec test ASTdefault java.lang.StringresolveIconName(@Nullable javax.swing.Icon icon)booleanrunInDispatchThread()booleanshouldContainTempFiles()booleanshouldRunTest()
-
-
-
Field Detail
-
BANNER_AST
static final java.lang.String BANNER_AST
-
BANNER_AST_AFTER_ACTION
static final java.lang.String BANNER_AST_AFTER_ACTION
-
BANNER_AST_BEFORE_ACTION
static final java.lang.String BANNER_AST_BEFORE_ACTION
-
BANNER_QUICK_FIXES
static final java.lang.String BANNER_QUICK_FIXES
-
BANNER_RANGES
static final java.lang.String BANNER_RANGES
-
BANNER_CLIPBOARD
static final java.lang.String BANNER_CLIPBOARD
-
BANNER_SEGMENTS
static final java.lang.String BANNER_SEGMENTS
-
BANNER_AFTER_ACTION
static final java.lang.String BANNER_AFTER_ACTION
-
BANNER_BEFORE_ACTION
static final java.lang.String BANNER_BEFORE_ACTION
-
EXCEPTION_MATCHER
static final com.vladsch.flexmark.test.util.ExceptionMatcher EXCEPTION_MATCHER
-
optionsMap
static final java.util.Map<java.lang.String,com.vladsch.flexmark.util.data.DataHolder> optionsMap
-
TEST_CARET_MARKUP
static final com.vladsch.flexmark.util.data.DataKey<java.lang.Boolean> TEST_CARET_MARKUP
-
-
Method Detail
-
getOptionsMap
static java.util.Map<java.lang.String,com.vladsch.flexmark.util.data.DataHolder> getOptionsMap()
-
bannerText
@NotNull static @NotNull java.lang.String bannerText(@NotNull @NotNull java.lang.String message)
-
appendBanner
static void appendBanner(@NotNull @NotNull java.lang.StringBuilder out, @NotNull @NotNull java.lang.String banner)
-
appendBannerIfNeeded
static void appendBannerIfNeeded(@NotNull @NotNull java.lang.StringBuilder out, @NotNull @NotNull java.lang.String banner)
-
getTests
@NotNull static @NotNull java.util.List<java.lang.Object[]> getTests(@NotNull @NotNull com.vladsch.flexmark.test.util.spec.ResourceLocation location)
-
optionsMaps
@Nullable static @Nullable java.util.Map<java.lang.String,? extends com.vladsch.flexmark.util.data.DataHolder> optionsMaps(@Nullable @Nullable java.util.Map<java.lang.String,? extends com.vladsch.flexmark.util.data.DataHolder> other, @Nullable @Nullable java.util.Map<java.lang.String,? extends com.vladsch.flexmark.util.data.DataHolder> overrides)
-
dataHolders
@Nullable static @Nullable com.vladsch.flexmark.util.data.DataHolder[] dataHolders(@Nullable @Nullable com.vladsch.flexmark.util.data.DataHolder other, @Nullable @Nullable com.vladsch.flexmark.util.data.DataHolder[] overrides)
-
executeAction
static void executeAction(@NonNls @NotNull @NonNls @NotNull java.lang.String actionId, @NotNull @NotNull com.intellij.openapi.editor.Editor editor, com.intellij.openapi.project.Project project)
-
executeAction
static void executeAction(@NotNull @NotNull com.intellij.openapi.editor.Editor editor, boolean assertActionIsEnabled, @NotNull @NotNull com.intellij.openapi.actionSystem.AnAction action)
-
executeKeystroke
static void executeKeystroke(@NotNull @NotNull com.intellij.openapi.editor.Editor editor, @NotNull @NotNull javax.swing.KeyStroke stroke)
-
resolveIconName
default java.lang.String resolveIconName(@Nullable @Nullable javax.swing.Icon icon)
-
getActualLineMarkerFileText
@NotNull static @NotNull java.lang.String getActualLineMarkerFileText(@NotNull @NotNull com.intellij.openapi.editor.Document myDocument, @NotNull @NotNull java.util.Collection<? extends com.intellij.codeInsight.daemon.LineMarkerInfo> markerInfos, @NotNull @NotNull java.util.function.Function<javax.swing.Icon,java.lang.String> iconResolver)
-
removeDuplicatedRangesForInjected
static void removeDuplicatedRangesForInjected(@NotNull @NotNull java.util.List<? extends com.intellij.codeInsight.daemon.impl.HighlightInfo> infos)
-
clearFields
static void clearFields(@NotNull @NotNull java.lang.Object test) throws java.lang.IllegalAccessException- Throws:
java.lang.IllegalAccessException
-
getExampleFileName
@NotNull static @NotNull java.lang.String getExampleFileName(@NotNull @NotNull java.lang.Class<?> testCaseClass, @NotNull @NotNull com.vladsch.flexmark.test.util.spec.SpecExample example, @NotNull @NotNull com.vladsch.flexmark.util.data.DataHolder options)
-
getExampleName
@NotNull static @NotNull java.lang.String getExampleName(@NotNull @NotNull com.vladsch.flexmark.test.util.spec.SpecExample example)
-
getAvailableIntentionsWithRanges
@NotNull default @NotNull java.util.List<IntentionInfo> getAvailableIntentionsWithRanges(@NotNull @NotNull LightFixtureSpecRenderer<?> specRenderer, @NotNull @NotNull com.intellij.openapi.editor.Editor editor, @NotNull @NotNull com.intellij.psi.PsiFile file, boolean atCaretOnly)
-
collectIntentionActions
static void collectIntentionActions(@Nullable @Nullable java.lang.Integer atOffset, com.intellij.codeInsight.daemon.impl.HighlightInfo info, boolean fileLevel, @NotNull @NotNull com.intellij.openapi.editor.Editor editor, @NotNull @NotNull com.intellij.psi.PsiFile file, java.util.List<IntentionInfo> intentions)
-
createExampleSpecRenderer
LightFixtureSpecRenderer<?> createExampleSpecRenderer(@NotNull @NotNull com.vladsch.flexmark.test.util.spec.SpecExample example, @Nullable @Nullable com.vladsch.flexmark.util.data.DataHolder options)
-
appendDefaultExampleOptions
default com.vladsch.flexmark.util.data.DataHolder appendDefaultExampleOptions(@NotNull @NotNull com.vladsch.flexmark.test.util.spec.SpecExample example, @Nullable @Nullable com.vladsch.flexmark.util.data.DataHolder options, @NotNull @NotNull java.lang.String optionsText)Used to add default example options as text- Parameters:
example- exampleoptions- example optionsoptionsText- option text- Returns:
- resulting data holder to use for spec renderer instantiation
-
initializeRenderer
<T extends CodeInsightFixtureSpecTestCase> void initializeRenderer(@NotNull @NotNull LightFixtureSpecRenderer<T> specRenderer)
Load extra settings and initialize spec renderer for parse- Type Parameters:
T- test case type- Parameters:
specRenderer- spec renderer
-
finalizeRenderer
<T extends CodeInsightFixtureSpecTestCase> void finalizeRenderer(@NotNull @NotNull LightFixtureSpecRenderer<T> specRenderer, @NotNull @NotNull com.vladsch.flexmark.util.data.DataHolder specRendererOptions)
Reset extra settings for next test and clean up any resources- Type Parameters:
T- test case type- Parameters:
specRenderer- spec rendererspecRendererOptions- options for spec renderer
-
renderSpecTestAst
<T extends CodeInsightFixtureSpecTestCase> void renderSpecTestAst(@NotNull @NotNull java.lang.StringBuilder ast, @NotNull @NotNull LightFixtureSpecRenderer<T> specRenderer, @NotNull @NotNull com.vladsch.flexmark.util.data.DataHolder specRendererOptions)
Add extra rendered info to spec test AST- Type Parameters:
T- test case type- Parameters:
ast- to add to ast section of spec testspecRenderer- spec rendererspecRendererOptions- options for spec renderer
-
getSpecExampleRenderer
@NotNull default @NotNull LightFixtureSpecRenderer<?> getSpecExampleRenderer(@NotNull @NotNull com.vladsch.flexmark.test.util.spec.SpecExample example, @Nullable @Nullable com.vladsch.flexmark.util.data.DataHolder exampleOptions)
Create spec renderer for example- Specified by:
getSpecExampleRendererin interfacecom.vladsch.flexmark.test.util.SpecExampleProcessor- Parameters:
example- spec exampleexampleOptions- example custom options- Returns:
- example spec renderer
-
createImageFile
default com.intellij.openapi.vfs.VirtualFile createImageFile(java.lang.String fileName, java.io.InputStream content)Create image file- Parameters:
fileName- file namecontent- file content- Returns:
- virtual file for the image file
-
addFullSpecExample
default void addFullSpecExample(@NotNull @NotNull com.vladsch.flexmark.test.util.SpecExampleRenderer exampleRenderer, @NotNull @NotNull com.vladsch.flexmark.test.util.SpecExampleParse exampleParse, @Nullable @Nullable com.vladsch.flexmark.util.data.DataHolder exampleOptions, boolean ignoredTestCase, @NotNull @NotNull java.lang.String html, @Nullable @Nullable java.lang.String ast)Called from dumpSpecReader as it is accumulating tests- Specified by:
addFullSpecExamplein interfacecom.vladsch.flexmark.test.util.SpecExampleProcessor- Parameters:
exampleRenderer- example rendererexampleParse- example parse stateexampleOptions- example optionsignoredTestCase- true if ignored examplehtml- html used for comparison to expected htmlast- ast used for comparison to expected ast
-
fullTestSpecStarting
default void fullTestSpecStarting()
Called from dumpSpecReader as it is accumulating tests to signal start of full test spec
-
fullTestSpecComplete
default void fullTestSpecComplete()
Called from dumpSpecReader as it is accumulating tests, to signal end of full test spec
-
beforeDoHighlighting
default void beforeDoHighlighting(@NotNull @NotNull LightFixtureSpecRenderer<?> specRenderer, @NotNull @NotNull com.intellij.psi.PsiFile file)Called before do highlighting is called on the file- Parameters:
specRenderer- spec rendererfile- psi file
-
create
@NotNull default @NotNull com.vladsch.flexmark.test.util.DumpSpecReader create(@NotNull @NotNull com.vladsch.flexmark.test.util.spec.ResourceLocation location)crate a DumpSpecReader for the given resource location and file resource- Parameters:
location- resource location- Returns:
- DumpSpecReader
-
checkExample
@NotNull default @NotNull com.vladsch.flexmark.test.util.spec.SpecExample checkExample(@NotNull @NotNull com.vladsch.flexmark.test.util.spec.SpecExample example)Called to allow customizing the example before it is used for tests- Specified by:
checkExamplein interfacecom.vladsch.flexmark.test.util.SpecExampleProcessor- Parameters:
example- example as it is in the test or spec file- Returns:
- example to use for tests
-
getDefaultOptions
@NotNull @NotNull com.vladsch.flexmark.util.data.DataHolder getDefaultOptions()
Get default options for the tests- Returns:
- default options
-
LOG
com.intellij.openapi.diagnostic.Logger LOG()
Get logger for the test- Returns:
- Logger
-
getExample
@NotNull @NotNull com.vladsch.flexmark.test.util.spec.SpecExample getExample()
Get the current spec example- Returns:
- spec example
-
getThrown
@NotNull @NotNull org.junit.rules.ExpectedException getThrown()
-
getTempDirFixture
@NotNull @NotNull com.intellij.testFramework.fixtures.TempDirTestFixture getTempDirFixture()
-
getProject
com.intellij.openapi.project.Project getProject()
-
getEditor
default com.intellij.openapi.editor.ex.EditorEx getEditor()
Returns the editor currently opened in the in-memory editor. to make it same as LightPlatformCodeInsightTestCase- Returns:
- editor currently opened in the in-memory editor.
-
getCaretOffset
default int getCaretOffset()
Returns the offset of the caret in the in-memory editor instance.- Returns:
- the offset of the caret in the in-memory editor instance.
-
getFile
default com.intellij.psi.PsiFile getFile()
Returns the file currently loaded into the in-memory editor.- Returns:
- the file currently loaded into the in-memory editor.
-
getPsiManager
com.intellij.psi.PsiManager getPsiManager()
Get PsiManager for the test- Returns:
- PsiManager
-
createLightFile
com.intellij.psi.PsiFile createLightFile(com.intellij.openapi.fileTypes.FileType fileType, java.lang.String text)Create a light file for the given text- Parameters:
fileType- file typetext- file text- Returns:
- PsiFile
-
createLightFile
com.intellij.psi.PsiFile createLightFile(java.lang.String fileName, com.intellij.lang.Language language, java.lang.String text)Create a light file for the given text- Parameters:
fileName- file namelanguage- languagetext- file text- Returns:
- PsiFile
-
getModule
@NotNull @NotNull com.intellij.openapi.module.Module getModule()
Get Module for the test- Returns:
- Module
-
addSuppressedException
void addSuppressedException(@NotNull @NotNull java.lang.Throwable e)Add a suppressed exception- Parameters:
e- exception to add
-
shouldContainTempFiles
boolean shouldContainTempFiles()
-
isIconRequired
boolean isIconRequired()
-
getTestRootDisposable
@NotNull @NotNull com.intellij.openapi.Disposable getTestRootDisposable()
-
shouldRunTest
boolean shouldRunTest()
-
defaultRunBare
void defaultRunBare(@NotNull @NotNull com.intellij.util.ThrowableRunnable<java.lang.Throwable> testRunnable) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
runInDispatchThread
boolean runInDispatchThread()
-
disposeOnTearDown
@NotNull <T extends com.intellij.openapi.Disposable> T disposeOnTearDown(@NotNull T disposable)
-
getTestName
@NotNull @NotNull java.lang.String getTestName(boolean lowercaseFirstLetter)
-
getTestDirectoryName
@NotNull @NotNull java.lang.String getTestDirectoryName()
-
isPerformanceTest
boolean isPerformanceTest()
-
isStressTest
boolean isStressTest()
-
assertNoThrowable
void assertNoThrowable(@NotNull @NotNull java.lang.Runnable closure)
-
annotatedWith
boolean annotatedWith(@NotNull @NotNull java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
-
getHomePath
@NotNull @NotNull java.lang.String getHomePath()
-
getFixture
com.intellij.testFramework.fixtures.CodeInsightTestFixture getFixture()
-
executeAction
default void executeAction(@NonNls @NotNull @NonNls @NotNull java.lang.String actionId)
-
executeAction
default void executeAction(@NonNls @NotNull @NonNls @NotNull java.lang.String actionId, @NotNull @NotNull com.intellij.openapi.editor.Editor editor)
-
getResultTextWithMarkup
@NotNull default @NotNull java.lang.String getResultTextWithMarkup(boolean withCarets, boolean withTestCaretMarkup)
-
getResultTextWithMarkup
@NotNull default @NotNull java.lang.String getResultTextWithMarkup(@NotNull @NotNull com.intellij.openapi.editor.Editor editor, boolean withCarets, boolean withTestCaretMarkup)
-
collectAndCheckHighlighting
default com.vladsch.flexmark.util.misc.Pair<java.lang.String,java.lang.String> collectAndCheckHighlighting(@NotNull @NotNull LightFixtureSpecRenderer<?> specRenderer, boolean checkLineMarkers, boolean checkWarnings, boolean checkInfos, boolean checkWeakWarnings, boolean ignoreExtraHighlighting)
-
getHostFile
default com.intellij.psi.PsiFile getHostFile()
-
collectAndCheckHighlighting
default com.vladsch.flexmark.util.misc.Pair<java.lang.String,java.lang.String> collectAndCheckHighlighting(@NotNull @NotNull LightFixtureSpecRenderer<?> specRenderer, @NotNull @NotNull com.intellij.testFramework.ExpectedHighlightingData data, boolean checkLineMarkers)
-
defaultTestCase
default void defaultTestCase()
-
closeOpenFile
default void closeOpenFile(@NotNull @NotNull LightFixtureSpecRenderer<?> specRenderer)
-
-