mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
java: keep only one JavadocTypedHandler implementation for front / back
GitOrigin-RevId: 1529002bf967294960c708821ca44dcdcd5dca0b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3d6b0b432c
commit
cb05166850
@@ -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() {
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user