Skip to content

Commit

Permalink
Add test data with a blank TZID, to the test case for verify parsing …
Browse files Browse the repository at this point in the history
…of calendar file.
  • Loading branch information
edwhiting committed Aug 19, 2020
1 parent c22371d commit 3699889
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
Expand Up @@ -88,6 +88,7 @@ class CalendarParserImplSpec extends Specification {
resource | compatibilityHints
'/samples/valid/bhav23-1.ics' | []
'/samples/invalid/bhav23-2.ics' | [KEY_RELAXED_UNFOLDING, KEY_RELAXED_PARSING]
'/samples/valid/blankTzid.ics' | []
}

def 'verify parsing empty lines'() {
Expand Down
37 changes: 37 additions & 0 deletions src/test/resources/samples/valid/blankTzid.ics
@@ -0,0 +1,37 @@
BEGIN:VCALENDAR
METHOD:PUBLISH
PRODID:Microsoft Exchange Server 2010
VERSION:2.0
BEGIN:VTIMEZONE
TZID:
BEGIN:STANDARD
DTSTART:16010101T000000
TZOFFSETFROM:+0000
TZOFFSETTO:+0000
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T000000
TZOFFSETFROM:+0000
TZOFFSETTO:+0000
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
ORGANIZER;CN=Bruce Roberts:MAILTO:roberts@company.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Bruce Robe
rts:MAILTO:roberts@company.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Sam Peter
:MAILTO:sam@company.com
ATTACH:CID:DFAA0447B2C90349A5BFD7B90216B66D@eurprd05.prod.outlook.com
DESCRIPTION;LANGUAGE=en-ZA:This event has been changed
UID:t21ocubdt9jagerldbkak7uhcg@google.com
DTSTART;TZID=:20150826T090000
DTEND;TZID=:20150826T100000
CLASS:PUBLIC
PRIORITY:5
DTSTAMP:20150825T093708Z
TRANSP:OPAQUE
STATUS:CONFIRMED
SEQUENCE:1
LOCATION;LANGUAGE=en-ZA:17 Commerce Crescent\,Eastgate
END:VEVENT
END:VCALENDAR

0 comments on commit 3699889

Please sign in to comment.