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
f7d66216
Commit
f7d66216
authored
7 years ago
by
Alexey Kudravtsev
Browse files
Options
Download
Email Patches
Plain Diff
cleanup
parent
da7965e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/platform-tests/testSrc/com/intellij/usages/impl/UsageViewTreeTest.java
+8
-11
...s/testSrc/com/intellij/usages/impl/UsageViewTreeTest.java
with
8 additions
and
11 deletions
+8
-11
platform/platform-tests/testSrc/com/intellij/usages/impl/UsageViewTreeTest.java
+
8
-
11
View file @
f7d66216
...
...
@@ -46,15 +46,12 @@ public class UsageViewTreeTest extends UsefulTestCase {
super
.
setUp
();
myFixtureBuilder
=
IdeaTestFixtureFactory
.
getFixtureFactory
().
createFixtureBuilder
(
"moduleGroups"
);
myFixture
=
IdeaTestFixtureFactory
.
getFixtureFactory
().
createCodeInsightFixture
(
myFixtureBuilder
.
getFixture
());
myDisposable
=
new
Disposable
()
{
@Override
public
void
dispose
()
{
try
{
myFixture
.
tearDown
();
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
e
);
}
myDisposable
=
()
->
{
try
{
myFixture
.
tearDown
();
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
e
);
}
};
myFixture
.
setUp
();
...
...
@@ -72,7 +69,7 @@ public class UsageViewTreeTest extends UsefulTestCase {
public
void
testSimpleModule
()
throws
Exception
{
addModule
(
"main"
);
PsiFile
file
=
myFixture
.
addFileToProject
(
"main/A.txt"
,
"hello"
);
Usage
[]
usages
=
new
Usage
[]
{
new
UsageInfo2UsageAdapter
(
new
UsageInfo
(
file
))};
Usage
[]
usages
=
{
new
UsageInfo2UsageAdapter
(
new
UsageInfo
(
file
))};
assertUsageViewStructureEquals
(
usages
,
"Usage (1 usage)\n"
+
" Non-code usages (1 usage)\n"
+
" main (1 usage)\n"
+
...
...
@@ -83,7 +80,7 @@ public class UsageViewTreeTest extends UsefulTestCase {
public
void
testModuleWithQualifiedName
()
throws
Exception
{
addModule
(
"xxx.main"
);
PsiFile
file
=
myFixture
.
addFileToProject
(
"xxx.main/A.txt"
,
"hello"
);
Usage
[]
usages
=
new
Usage
[]
{
new
UsageInfo2UsageAdapter
(
new
UsageInfo
(
file
))};
Usage
[]
usages
=
{
new
UsageInfo2UsageAdapter
(
new
UsageInfo
(
file
))};
UsageViewSettings
.
getInstance
().
FLATTEN_MODULES
=
false
;
ModuleGroupTestsKt
.
runWithQualifiedModuleNamesEnabled
(()
->
{
assertUsageViewStructureEquals
(
usages
,
"Usage (1 usage)\n"
+
...
...
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