mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SSR: simplify "constructors of the class" template and test
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ class JavaPredefinedConfigurations {
|
||||
),
|
||||
createSearchTemplateInfo(
|
||||
SSRBundle.message("predefined.configuration.constructors.of.the.class"),
|
||||
"class 'Class {\n 'Class('_ParameterType '_Parameter*) {\n '_Statement*;\n }\n}",
|
||||
"'Class('_ParameterType '_Parameter*) {\n '_Statement*;\n}",
|
||||
CLASS_TYPE
|
||||
),
|
||||
createSearchTemplateInfo(
|
||||
|
||||
+12
@@ -45,6 +45,18 @@ public class JavaPredefinedConfigurationsTest extends StructuralSearchTestCase {
|
||||
asList("System.out.println()",
|
||||
"System.out.println(1)",
|
||||
"x()")));
|
||||
testCases.put(SSRBundle.message("predefined.configuration.constructors.of.the.class"),
|
||||
pair("class X {" +
|
||||
" X() {}" +
|
||||
" X(int i) {" +
|
||||
" System.out.println(i);" +
|
||||
" }" +
|
||||
" X(String... ss) {}" +
|
||||
" void m() {}" +
|
||||
"}",
|
||||
asList("X() {}",
|
||||
"X(int i) { System.out.println(i); }",
|
||||
"X(String... ss) {}")));
|
||||
}
|
||||
|
||||
public void testPredefinedConfigurations() {
|
||||
|
||||
Reference in New Issue
Block a user