added another convenience method.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31038 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2010-05-14 17:03:43 +00:00
1 parent 5183863f59
commit de7bbfdb2d
1 file changed
+10
@@ -653,6 +653,16 @@ public abstract class HudsonTestCase extends TestCase implements RootAction {
return new WebClient().search(q);
}
/**
* Loads a configuration page and submits it without any modifications, to
* perform a round-trip configuration test.
* @see http://wiki.hudson-ci.org/display/HUDSON/Unit+Test#UnitTest-Configurationroundtriptesting
*/
protected <P extends Job> P configRoundtrip(P job) throws Exception {
submit(createWebClient().getPage(job,"configure").getFormByName("config"));
return job;
}
/**