Skip to content

Commit

Permalink
fix: replace deprecated parent classes
Browse files Browse the repository at this point in the history
  • Loading branch information
bjansen committed Sep 11, 2024
1 parent 31d8b41 commit d0cc921
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.FoldRegion;
import com.intellij.testFramework.EditorTestUtil;
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase;
import com.intellij.testFramework.fixtures.BasePlatformTestCase;
import org.antlr.intellij.plugin.TestUtils;

import java.lang.reflect.Method;

public class ANTLRv4FoldingBuilderTest extends LightPlatformCodeInsightFixtureTestCase {
public class ANTLRv4FoldingBuilderTest extends BasePlatformTestCase {

public void test_folding_should_not_throw_on_incomplete_prequel() {
// Given
Expand Down Expand Up @@ -48,4 +48,4 @@ private void buildInitialFoldings() {
CodeFoldingManager.getInstance(getProject()).buildInitialFoldings(myFixture.getEditor());
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.intellij.openapi.editor.markup.RangeHighlighter;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiReference;
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase;
import com.intellij.testFramework.fixtures.BasePlatformTestCase;
import com.intellij.usageView.UsageInfo;
import org.antlr.intellij.plugin.ANTLRv4FileRoot;
import org.antlr.intellij.plugin.ANTLRv4PluginController;
Expand All @@ -13,7 +13,7 @@
import java.util.Collection;
import java.util.function.Consumer;

public class GrammarElementRefTest extends LightPlatformCodeInsightFixtureTestCase {
public class GrammarElementRefTest extends BasePlatformTestCase {
public void testFindUsagesOfLexerRule() {
Collection<UsageInfo> ruleUsages = myFixture.testFindUsages("SimpleGrammar.g4");
assertEquals(3, ruleUsages.size());
Expand Down Expand Up @@ -249,4 +249,4 @@ private PsiElement resolveRefAtCaret() {
return null;
}

}
}

0 comments on commit d0cc921

Please sign in to comment.