/src/main/resources/com/onresolve/jira/groovy/canned/admin/WontCompile40.groovy
Groovy | 54 lines | 42 code | 11 blank | 1 comment | 0 complexity | ff31a54998b07631ec00bced7952e157 MD5 | raw file
- package com.onresolve.jira.groovy.canned.admin
-
- import com.atlassian.jira.jql.builder.DefaultJqlClauseBuilder
- import com.onresolve.jira.groovy.canned.CannedScript
- import com.atlassian.jira.util.ErrorCollection
-
- public class WontCompile implements CannedScript {
-
- public String getName() {
- "WontCompile for 4 and above"
- }
-
- public String getDescription() {
- "XXX this class should really not compile"
- }
-
- List getCategories() {
- ["ADMIN"]
- }
-
- public List getParameters(Map params) {
- [
- [
- Label:"Project",
- Name:"Project",
- Description:"Project",
- ]
- ]
- }
-
- ErrorCollection doValidate(Map params, boolean forPreview) {
- System.out.println("GetUser.doValidate");
- null
- }
-
- void doScript() {
- // magic goes here
- println "hello sailor"
- }
-
- Map doScript(Map params) {
- System.out.println(this.class.getName());
- System.out.println("WontCompile.doScript");
- [:]
- }
-
- String getDescription(Map params, boolean forPreview) {
- "Class just used for testing"
- }
-
- public Boolean isFinalParamsPage(Map params) {
- true
- }
- }