未验证 提交 6a32a20f 编写于 作者: J Jesse Glick

HistoryWidgetTest

上级 d6dfd42a
package hudson.widgets
import org.junit.Rule
import org.junit.Test
import org.jvnet.hudson.test.Issue
import org.jvnet.hudson.test.JenkinsRule
/**
* @author Kohsuke Kawaguchi
*/
class HistoryWidgetTest {
@Rule
public JenkinsRule j = new JenkinsRule()
@Test
@Issue("JENKINS-15499")
void moreLink() {
def p = j.createFreeStyleProject()
for (x in 1..3) {
j.assertBuildStatusSuccess(p.scheduleBuild2(0))
}
def wc = j.createWebClient()
wc.javaScriptEnabled = false
wc.goTo("job/${p.name}/buildHistory/all")
}
}
package hudson.widgets;
import hudson.model.FreeStyleProject;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.Issue;
import org.jvnet.hudson.test.JenkinsRule;
public class HistoryWidgetTest {
@Rule
public JenkinsRule j = new JenkinsRule();
@Test
@Issue("JENKINS-15499")
public void moreLink() throws Exception {
FreeStyleProject p = j.createFreeStyleProject();
for (int x = 0; x < 3; x++) {
j.assertBuildStatusSuccess(p.scheduleBuild2(0));
}
JenkinsRule.WebClient wc = j.createWebClient();
wc.setJavaScriptEnabled(false);
wc.goTo("job/" + p.getName() + "/buildHistory/all");
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册