From b4e0c797a97a84e836edb85ac399dce4ab7fae60 Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Sat, 18 Dec 2010 15:08:47 -0800 Subject: [PATCH] added a convenience method --- .../main/java/org/jvnet/hudson/test/HudsonTestCase.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java b/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java index 9354d50978..c707592f37 100644 --- a/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java +++ b/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java @@ -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.