java: keep only one JavadocTypedHandler implementation for front / back

GitOrigin-RevId: 1529002bf967294960c708821ca44dcdcd5dca0b
This commit is contained in:
Dmitry Batkovich
2025-04-12 18:06:16 +02:00
committed by intellij-monorepo-bot
parent 3d6b0b432c
commit cb05166850
6 changed files with 13 additions and 39 deletions

View File

@@ -5,7 +5,7 @@ import com.intellij.PathJavaTestUtil;
import com.intellij.testFramework.LightPlatformCodeInsightTestCase;
import org.jetbrains.annotations.NotNull;
public abstract class AbstractBasicJavadocTypedHandlerFunctionalTest extends LightPlatformCodeInsightTestCase {
public abstract class JavadocTypedHandlerFunctionalTest extends LightPlatformCodeInsightTestCase {
private static final String BASE_PATH = "/codeInsight/editorActions/javadocTypedHandler/";
public void testEmptyTag() {

View File

@@ -1,12 +1,12 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.codeInsight;
import com.intellij.codeInsight.editorActions.AbstractBasicJavadocTypedHandler;
import com.intellij.codeInsight.editorActions.JavadocTypedHandler;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public abstract class AbstractBasicJavadocTypedHandlerTest {
public abstract class JavadocTypedHandlerTest {
private static final String CARET_MARKER = "<caret>";
@@ -45,7 +45,7 @@ public abstract class AbstractBasicJavadocTypedHandlerTest {
int offset = text.indexOf(CARET_MARKER);
normalized.append(text, 0, offset);
normalized.append(text.substring(offset + CARET_MARKER.length()));
CharSequence actual = AbstractBasicJavadocTypedHandler.getTagName(normalized.toString(), offset);
CharSequence actual = JavadocTypedHandler.getTagName(normalized.toString(), offset);
assertEquals(expected, actual);
}
}