Search in sources :

Example 1 with InlayHintsChecker

use of com.intellij.testFramework.utils.inlays.InlayHintsChecker in project intellij-community by JetBrains.

the class CodeInsightTestFixtureImpl method testInlays.

@Override
public void testInlays() {
    InlayHintsChecker checker = new InlayHintsChecker(this);
    try {
        checker.setUp();
        checker.checkInlays();
    } finally {
        checker.tearDown();
    }
}
Also used : InlayHintsChecker(com.intellij.testFramework.utils.inlays.InlayHintsChecker)

Example 2 with InlayHintsChecker

use of com.intellij.testFramework.utils.inlays.InlayHintsChecker in project intellij-community by JetBrains.

the class CodeInsightTestFixtureImpl method checkResultWithInlays.

@Override
public void checkResultWithInlays(String text) {
    Document checkDocument = new DocumentImpl(text);
    InlayHintsChecker checker = new InlayHintsChecker(this);
    List<InlayInfo> inlayInfos = checker.extractInlays(checkDocument);
    checkResult(checkDocument.getText());
    checker.verifyInlays(inlayInfos, text);
}
Also used : InlayHintsChecker(com.intellij.testFramework.utils.inlays.InlayHintsChecker) InlayInfo(com.intellij.codeInsight.hints.InlayInfo) DocumentImpl(com.intellij.openapi.editor.impl.DocumentImpl)

Aggregations

InlayHintsChecker (com.intellij.testFramework.utils.inlays.InlayHintsChecker)2 InlayInfo (com.intellij.codeInsight.hints.InlayInfo)1 DocumentImpl (com.intellij.openapi.editor.impl.DocumentImpl)1