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