blob: 5f499ee8b301c77cfd9492704d464c3046e38406 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
package com.intellij.codeInsight;
import com.intellij.ide.DataManager;
import com.intellij.openapi.actionSystem.IdeActions;
import com.intellij.openapi.editor.actionSystem.EditorActionHandler;
import com.intellij.openapi.editor.actionSystem.EditorActionManager;
import com.intellij.testFramework.PlatformTestCase;
/**
* @author mike
*/
@PlatformTestCase.WrapInCommand
public class GenerateJavadocTest extends CodeInsightTestCase {
public void test1() throws Exception { doTest(); }
public void test2() throws Exception { doTest(); }
public void test3() throws Exception { doTest(); }
public void testIdeadev2328() throws Exception { doTest(); }
public void testIdeadev2328_2() throws Exception { doTest(); }
public void testBeforeCommentedJavadoc() throws Exception { doTest(); }
public void testDoubleSlashInJavadoc() throws Exception { doTest(); }
private void doTest() throws Exception {
String name = getTestName(false);
configureByFile("/codeInsight/generateJavadoc/before" + name + ".java");
performAction();
checkResultByFile("/codeInsight/generateJavadoc/after" + name + ".java", false);
}
private void performAction() {
EditorActionManager actionManager = EditorActionManager.getInstance();
EditorActionHandler actionHandler = actionManager.getActionHandler(IdeActions.ACTION_EDITOR_ENTER);
actionHandler.execute(myEditor, DataManager.getInstance().getDataContext());
}
}
|