this mutator makes a testing more convenient

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13318 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-11-18 17:57:15 +00:00
1 parent 334119c1d7
commit f4d75f11b5
1 file changed
+4
@@ -261,6 +261,10 @@ public class Maven extends Builder {
return installations;
}
public void setInstallations(MavenInstallation... installations) {
this.installations = installations;
}
@Override
public boolean configure(StaplerRequest req, JSONObject json) throws FormException {
this.installations = req.bindJSONToList(MavenInstallation.class, json.get("maven")).toArray(new MavenInstallation[0]);