use of org.jsoup.nodes.Attributes in project jsoup by jhy.
the class AttributeParseTest method parsesEmptyString.
@Test
public void parsesEmptyString() {
String html = "<a />";
Element el = Jsoup.parse(html).getElementsByTag("a").get(0);
Attributes attr = el.attributes();
assertEquals(0, attr.size());
}