diff --git a/plugins/groovy/resources/fileTemplates/code/Spock SetUp Method.groovy.ft b/plugins/groovy/resources/fileTemplates/code/Spock SetUp Method.groovy.ft new file mode 100644 index 000000000000..303209e1a46f --- /dev/null +++ b/plugins/groovy/resources/fileTemplates/code/Spock SetUp Method.groovy.ft @@ -0,0 +1,3 @@ +void setup() { + ${BODY} +} \ No newline at end of file diff --git a/plugins/groovy/resources/fileTemplates/code/Spock SetUp Method.groovy.html b/plugins/groovy/resources/fileTemplates/code/Spock SetUp Method.groovy.html new file mode 100644 index 000000000000..379785f36c3f --- /dev/null +++ b/plugins/groovy/resources/fileTemplates/code/Spock SetUp Method.groovy.html @@ -0,0 +1,27 @@ + + + + + + +
+ This is a template used to create a setup() method in Spock test class. + +
+ + + + + + + + + + + + + + +
Predefined variables will take the following values:
${NAME} name of the created method.
${BODY} generated method body.
+ + \ No newline at end of file diff --git a/plugins/groovy/resources/fileTemplates/code/Spock Test Method.groovy.ft b/plugins/groovy/resources/fileTemplates/code/Spock Test Method.groovy.ft new file mode 100644 index 000000000000..57246e57ea5f --- /dev/null +++ b/plugins/groovy/resources/fileTemplates/code/Spock Test Method.groovy.ft @@ -0,0 +1,3 @@ +def "${NAME}"() { +${BODY} +} \ No newline at end of file diff --git a/plugins/groovy/resources/fileTemplates/code/Spock Test Method.groovy.html b/plugins/groovy/resources/fileTemplates/code/Spock Test Method.groovy.html new file mode 100644 index 000000000000..f9789fc6a2c4 --- /dev/null +++ b/plugins/groovy/resources/fileTemplates/code/Spock Test Method.groovy.html @@ -0,0 +1,27 @@ + + + + + + +
+ This is a template used to create a test method in Spock test class. + +
+ + + + + + + + + + + + + + +
Predefined variables will take the following values:
${NAME} name of the created method.
${BODY} generated method body.
+ + diff --git a/plugins/groovy/resources/fileTemplates/code/Spock cleanup Method.groovy.ft b/plugins/groovy/resources/fileTemplates/code/Spock cleanup Method.groovy.ft new file mode 100644 index 000000000000..93fac82ea558 --- /dev/null +++ b/plugins/groovy/resources/fileTemplates/code/Spock cleanup Method.groovy.ft @@ -0,0 +1,3 @@ +void cleanup() { + ${BODY} +} \ No newline at end of file diff --git a/plugins/groovy/resources/fileTemplates/code/Spock cleanup Method.groovy.html b/plugins/groovy/resources/fileTemplates/code/Spock cleanup Method.groovy.html new file mode 100644 index 000000000000..0517d8d4bc17 --- /dev/null +++ b/plugins/groovy/resources/fileTemplates/code/Spock cleanup Method.groovy.html @@ -0,0 +1,27 @@ + + + + + + +
+ This is a template used to create a cleanup() method in Spock test class. + +
+ + + + + + + + + + + + + + +
Predefined variables will take the following values:
${NAME} name of the created method.
${BODY} generated method body.
+ + \ No newline at end of file diff --git a/plugins/groovy/src/META-INF/plugin.xml b/plugins/groovy/src/META-INF/plugin.xml index 46076a66a3ef..d835e4583898 100644 --- a/plugins/groovy/src/META-INF/plugin.xml +++ b/plugins/groovy/src/META-INF/plugin.xml @@ -209,6 +209,8 @@ implementationClass="org.jetbrains.plugins.groovy.findUsages.GrFileItemPresentationProvider"/> + +