Merge commit 'ad343a68075e64ee91bf66d84a8dea727f60bf84'

Conflicts:
	core/pom.xml
	core/src/main/java/hudson/model/Node.java
	test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java
This commit is contained in:
Kohsuke Kawaguchi committed 2011-04-01 15:05:47 -07:00
commit 3abc2d5b1c
6 files changed
+128 -4

No files matched your search

@@ -855,6 +855,11 @@ public abstract class HudsonTestCase extends TestCase implements RootAction {
return u;
}
protected <N extends Node> N configRoundtrip(N node) throws Exception {
submit(createWebClient().goTo("/computer/"+node.getNodeName()+"/configure").getFormByName("config"));
return (N)hudson.getNode(node.getNodeName());
}
protected <V extends View> V configRoundtrip(V view) throws Exception {
submit(createWebClient().getPage(view, "configure").getFormByName("viewConfig"));
return view;