diff --git a/java/java-tests/testData/fileStructure/hierarchy/AnonymousHashCode.java b/java/java-tests/testData/fileStructure/hierarchy/AnonymousHashCode.java new file mode 100644 index 000000000000..4de1149fdf35 --- /dev/null +++ b/java/java-tests/testData/fileStructure/hierarchy/AnonymousHashCode.java @@ -0,0 +1,20 @@ +/* + * Copyright 2000-2012 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +public class A { + void foo() { + Object myObject = new Object(){}; + } +} \ No newline at end of file diff --git a/java/java-tests/testData/fileStructure/hierarchy/AnonymousHashCode.tree b/java/java-tests/testData/fileStructure/hierarchy/AnonymousHashCode.tree new file mode 100644 index 000000000000..be549e6fbe1a --- /dev/null +++ b/java/java-tests/testData/fileStructure/hierarchy/AnonymousHashCode.tree @@ -0,0 +1,6 @@ +-A.java + -A + -[hashCode(): void] + -foo(): void + -$1 + hashCode(): int \ No newline at end of file diff --git a/java/java-tests/testSrc/com/intellij/ide/fileStructure/JavaFileStructureHierarchyTest.java b/java/java-tests/testSrc/com/intellij/ide/fileStructure/JavaFileStructureHierarchyTest.java index dd113e73a40c..d59fa42c2067 100644 --- a/java/java-tests/testSrc/com/intellij/ide/fileStructure/JavaFileStructureHierarchyTest.java +++ b/java/java-tests/testSrc/com/intellij/ide/fileStructure/JavaFileStructureHierarchyTest.java @@ -33,4 +33,5 @@ public class JavaFileStructureHierarchyTest extends JavaFileStructureTestCase { public void testSimple() throws Exception {checkTree();} public void testAnonymousAsConstantInInterface() throws Exception {checkTree("getA");} + //public void testAnonymousHashCode() throws Exception {checkTree("hash");} }