added a convenience method

This commit is contained in:
Kohsuke Kawaguchi committed 2011-03-31 17:04:05 -07:00
1 parent 1cb9b2644d
commit b3a47fc3cd
1 file changed
+5
@@ -846,6 +846,11 @@ public abstract class HudsonTestCase extends TestCase implements RootAction {
return (C)computerConnectorTester.connector;
}
protected <V extends View> V configRoundtrip(V view) throws Exception {
submit(createWebClient().getPage(view, "configure").getFormByName("viewConfig"));
return view;
}
/**
* Asserts that the outcome of the build is a specific outcome.