Commit 56e0cd51 authored by yihua.huang's avatar yihua.huang

compile error fix

parent c5740b18
...@@ -39,7 +39,7 @@ public class HtmlTest { ...@@ -39,7 +39,7 @@ public class HtmlTest {
assertThat(html.links().all()).contains("/xx/xx"); assertThat(html.links().all()).contains("/xx/xx");
} }
@Test(expected = NullPointerException) @Test(expected = NullPointerException.class)
public void testNthNodesGet(){ public void testNthNodesGet(){
Html html = new Html("<a data-tip=\"p$t$xxx\" href=\"/xx/xx\">xx</a>"); 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"); 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