mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
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:
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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user