mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-20 05:21:29 +07:00
[java] IDEA-371828 support implicit classes in navbar
- add test GitOrigin-RevId: 7b6eba31abb6eaf098e5e52c9065e47b74295ddb
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e011458243
commit
c94b89142f
@@ -0,0 +1,8 @@
|
||||
void main() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
void test(){
|
||||
<caret>
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.ide.navigationToolbar;
|
||||
|
||||
import com.intellij.JavaTestUtil;
|
||||
@@ -36,6 +36,11 @@ public class JavaNavBarTest extends LightJavaCodeInsightFixtureTestCase {
|
||||
assertNavBarModel("src", "multipleClasses.java", "Bar");
|
||||
}
|
||||
|
||||
public void testImplicitClass() {
|
||||
myFixture.configureByFile("implicitClass.java");
|
||||
assertNavBarModel("src", "implicitClass.java", "test");
|
||||
}
|
||||
|
||||
public void assertNavBarModel(String... expectedItems) {
|
||||
DataContext dataContext = ((EditorEx)myFixture.getEditor()).getDataContext();
|
||||
List<String> items = contextNavBarPathStrings(dataContext);
|
||||
|
||||
Reference in New Issue
Block a user