public Property createProperty() { return new Attendee(); } }
public Property createProperty(final String name, final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Attendee(parameters, value); }
public Property createProperty() { return new Attendee(); } }
public Property createProperty() { return new Attendee(); } }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Attendee(parameters, value); }
public Property createProperty(final String name) { return new Attendee(); } };
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Attendee(parameters, value); }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Attendee(parameters, value); }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Attendee(parameters, value); }
protected static Attendee createAttendee(GenericValue partyValue, Map<String, Object> context) { Attendee attendee = new Attendee(); loadPartyAssignment(attendee, partyValue, context); return attendee; }
/** * {@inheritDoc} */ public final Property copy() { // URI are immutable return new Attendee(new ParameterList(getParameters(), false), calAddress); }
/** * {@inheritDoc} */ public final Property copy() { // URI are immutable return new Attendee(new ParameterList(getParameters(), false), calAddress); }
/** * {@inheritDoc} */ public final Property copy() throws IOException, URISyntaxException, ParseException { // URI are immutable return new Attendee(new ParameterList(getParameters(), false), calAddress); }
/** * {@inheritDoc} */ public final Property copy() throws IOException, URISyntaxException, ParseException { // URI are immutable return new Attendee(new ParameterList(getParameters(), false), calAddress); }
@Test public void shouldNotThrowExceptionIfAttendeeIsEmpty() throws URISyntaxException { RuleManager.applyTo(new Attendee()); }
@Test public void shouldNotThrowExceptionIfOneApostrophe() throws URISyntaxException { RuleManager.applyTo(new Attendee("mailto:'")); }
@Test public void shouldNotThrowExceptionIfTwoApostrophes() throws URISyntaxException { RuleManager.applyTo(new Attendee("mailto:''")); }
@Test public void shouldNotDoAnythingIfAnotherScheem() throws URISyntaxException { String value = "http://something"; Attendee attende = new Attendee(value); RuleManager.applyTo(attende); assertEquals(value, attende.getValue()); }
@Test public void shouldLeaveAttendeeAsItIs() throws URISyntaxException { Attendee attendee = new Attendee("mailto:mobile-media-applications@1und1.de"); attendee.getParameters().add(new Cn("Mobile Media")); RuleManager.applyTo(attendee); assertEquals("mailto:mobile-media-applications@1und1.de", attendee.getValue()); }
@Test public void shouldCorrectlyRemoveApostrophes() throws URISyntaxException { Attendee attendee = new Attendee("mailto:'mobile-media-applications@1und1.de'"); attendee.getParameters().add(new Cn("Mobile Media")); RuleManager.applyTo(attendee); assertEquals("mailto:mobile-media-applications@1und1.de", attendee.getValue()); }