use of ezvcard.io.LuckyNumProperty in project ez-vcard by mangstadt.
the class EzvcardTest method parseXml_register.
@Test
public void parseXml_register() throws Exception {
XCardBuilder xb = new XCardBuilder();
xb.prop("http://luckynum.com", "lucky-num", "<num>22</num>");
VCard vcard = Ezvcard.parseXml(xb.toString()).register(new LuckyNumScribe()).first();
assertVersion(VCardVersion.V4_0, vcard);
List<LuckyNumProperty> ext = vcard.getProperties(LuckyNumProperty.class);
assertEquals(1, ext.size());
assertEquals(22, ext.get(0).luckyNum);
}
Aggregations