change assert #200

pull/168/merge
yihua.huang 10 years ago
parent 67eb632f4d
commit c5740b1840

@ -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");

Loading…
Cancel
Save