use of ezvcard.io.xml.XCardElement.XCardValue in project ez-vcard by mangstadt.
the class XCardElementTest method firstValue_namespace.
@Test
public void firstValue_namespace() {
XCardElement xcardElement = build("<prop><n:foo xmlns:n=\"http://example.com\">one</n:foo><text>two</text></prop>");
XCardValue child = xcardElement.firstValue();
assertEquals(VCardDataType.TEXT, child.getDataType());
assertEquals("two", child.getValue());
}
Aggregations