Commit c5740b18 authored by yihua.huang's avatar yihua.huang

change assert #200

parent 67eb632f
......@@ -39,7 +39,7 @@ public class HtmlTest {
assertThat(html.links().all()).contains("/xx/xx");
}
@Test
@Test(expected = NullPointerException)
public void testNthNodesGet(){
Html html = new Html("<a data-tip=\"p$t$xxx\" href=\"/xx/xx\">xx</a>");
assertThat(html.xpath("//a[1]/@href").get()).isEqualTo("/xx/xx");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment