提交 9c482ea5 编写于 作者: T tfennelly

Fixed TaskTest tests

上级 1fabf0f5
......@@ -29,6 +29,7 @@ import java.io.IOException;
import javax.servlet.ServletException;
import com.gargoylesoftware.htmlunit.html.HtmlElementUtil;
import hudson.model.UnprotectedRootAction;
import org.junit.Rule;
......@@ -49,7 +50,7 @@ public class TaskTest {
@Test public void postLink() throws Exception {
WebClient wc = j.createWebClient();
HtmlPage page = wc.goTo(postLink.getUrlName());
page.getAnchorByText("POST").click();
HtmlElementUtil.click(page.getAnchorByText("POST"));
assertTrue("Action method should be invoked", postLink.called);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册