added a convenience method

This commit is contained in:
Kohsuke Kawaguchi committed 2010-12-23 09:07:35 -08:00
1 parent 9daa2288ee
commit b4e0c797a9
1 file changed
+7
@@ -671,6 +671,13 @@ public abstract class HudsonTestCase extends TestCase implements RootAction {
return new WebClient().search(q);
}
/**
* Hits the Hudson system configuration and submits without any modification.
*/
protected void configRoundtrip() throws Exception {
submit(createWebClient().goTo("configure").getFormByName("config"));
}
/**
* Loads a configuration page and submits it without any modifications, to
* perform a round-trip configuration test.