Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
4c4233c1
Commit
4c4233c1
authored
6 years ago
by
Tagir Valeev
Browse files
Options
Download
Email Patches
Plain Diff
GenerateJavadocTest => LightCodeInsightTestCase
parent
5166ad7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/java-tests/testSrc/com/intellij/java/codeInsight/GenerateJavadocTest.java
+15
-13
...rc/com/intellij/java/codeInsight/GenerateJavadocTest.java
with
15 additions
and
13 deletions
+15
-13
java/java-tests/testSrc/com/intellij/java/codeInsight/GenerateJavadocTest.java
+
15
-
13
View file @
4c4233c1
...
...
@@ -15,36 +15,38 @@
*/
package
com.intellij.java.codeInsight
;
import
com.intellij.codeInsight.CodeInsightTestCase
;
import
com.intellij.ide.DataManager
;
import
com.intellij.openapi.actionSystem.DataContext
;
import
com.intellij.openapi.actionSystem.IdeActions
;
import
com.intellij.openapi.editor.actionSystem.EditorActionHandler
;
import
com.intellij.openapi.editor.actionSystem.EditorActionManager
;
import
com.intellij.testFramework.LightCodeInsightTestCase
;
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
();
}
public
class
GenerateJavadocTest
extends
Light
CodeInsightTestCase
{
public
void
test1
()
{
doTest
();
}
public
void
test2
()
{
doTest
();
}
public
void
test3
()
{
doTest
();
}
public
void
testIdeadev2328
()
{
doTest
();
}
public
void
testIdeadev2328_2
()
{
doTest
();
}
public
void
testBeforeCommentedJavadoc
()
{
doTest
();
}
public
void
testDoubleSlashInJavadoc
()
{
doTest
();
}
private
void
doTest
()
throws
Exception
{
private
void
doTest
()
{
String
name
=
getTestName
(
false
);
configureByFile
(
"/codeInsight/generateJavadoc/before"
+
name
+
".java"
);
performAction
();
checkResultByFile
(
"/codeInsight/generateJavadoc/after"
+
name
+
".java"
,
false
);
checkResultByFile
(
"/codeInsight/generateJavadoc/after"
+
name
+
".java"
);
}
private
void
performAction
()
{
private
static
void
performAction
()
{
EditorActionManager
actionManager
=
EditorActionManager
.
getInstance
();
EditorActionHandler
actionHandler
=
actionManager
.
getActionHandler
(
IdeActions
.
ACTION_EDITOR_ENTER
);
actionHandler
.
execute
(
myEditor
,
DataManager
.
getInstance
().
getDataContext
());
DataContext
context
=
DataManager
.
getInstance
().
getDataContext
(
myEditor
.
getComponent
());
actionHandler
.
execute
(
myEditor
,
myEditor
.
getCaretModel
().
getCurrentCaret
(),
context
);
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment