This commit is contained in:
Alexey Kudravtsev
2009-10-28 16:16:04 +03:00
parent 83cecfceb4
commit f81181a974
2 changed files with 25 additions and 14 deletions
@@ -37,12 +37,19 @@ public class HeavySmartTypeCompletion15Test extends CompletionTestCase {
"public class Bar<T> {" +
" protected Bar(java.util.List<T> list) {}" +
"}");
doTest();
}
configureByFile(BASE_PATH + "/ProtectedAnonymousConstructor.java");
checkResultByFile(BASE_PATH + "/ProtectedAnonymousConstructor-out.java");
configureByFile(BASE_PATH + "/ProtectedAnonymousConstructor2.java");
checkResultByFile(BASE_PATH + "/ProtectedAnonymousConstructor2-out.java");
public void testProtectedAnonymousConstructor2() throws Throwable {
createClass("package pkg;" +
"public class Foo {" +
" protected Foo(int a) {}" +
"}");
createClass("package pkg;" +
"public class Bar<T> {" +
" protected Bar(java.util.List<T> list) {}" +
"}");
doTest();
}
public void testUnlockDocument() throws Throwable {