Created
December 31, 2011 01:11
-
-
Save paganotoni/1542335 to your computer and use it in GitHub Desktop.
Adding Hash of parameters for ControllerUnitTest on groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def parameters = [ title: "Basic", company:"Experience", location:"Boston", type: "Senior", salary: "80k", description: " BAsic desc", experience: "Experience", draft: "false", email: "[email protected]",industries: "Ind1, ind2", functions: "BB", experiences: "experiences",skills: "Skill1" ] | |
parameters.each{ | |
controller.params."${it.key}" = it.value | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment