use of ezvcard.property.Note in project ez-vcard by mangstadt.
the class VCardTest method removeProperties.
@Test
public void removeProperties() {
VCard vcard = new VCard();
assertEquals(asList(), vcard.removeProperties(Note.class));
Note property1 = new Note("value");
Note property2 = new Note("value2");
vcard.addProperty(property1);
vcard.addProperty(property2);
assertEquals(asList(property1, property2), vcard.getProperties(Note.class));
assertEquals(asList(property1, property2), vcard.removeProperties(Note.class));
assertEquals(asList(), vcard.getProperties(Note.class));
}
Aggregations