Skip to content

Commit

Permalink
incoming.ics contains multiple VCALENDARs and the 3rd one uses relaxe…
Browse files Browse the repository at this point in the history
…d folding (\n\s). The test chokes on the 3rd invite without this change
  • Loading branch information
grishick committed Feb 15, 2017
1 parent 1450160 commit d05b617
Showing 1 changed file with 11 additions and 0 deletions.
Expand Up @@ -34,6 +34,8 @@
import junit.framework.TestCase;
import net.fortuna.ical4j.data.CalendarBuilder;
import net.fortuna.ical4j.model.parameter.CuType;
import net.fortuna.ical4j.util.CompatibilityHints;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand All @@ -58,10 +60,19 @@ public class IndexedPropertyListTest extends TestCase {
* @see junit.framework.TestCase#setUp()
*/
protected void setUp() throws Exception {
CompatibilityHints.setHintEnabled(
CompatibilityHints.KEY_RELAXED_UNFOLDING, true);
CalendarBuilder builder = new CalendarBuilder();
calendar = builder.build(getClass().getResourceAsStream("/samples/valid/incoming.ics"));
}

/* (non-Javadoc)
* @see junit.framework.TestCase#tearDown()
*/
protected final void tearDown() throws Exception {
CompatibilityHints.clearHintEnabled(CompatibilityHints.KEY_RELAXED_UNFOLDING);
}

/**
* Indexing with IndexedPropertyList.
*/
Expand Down

0 comments on commit d05b617

Please sign in to comment.