Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Feb 24, 2024
1 parent 8273f5b commit e669baf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/test/groovy/org/ical4j/template/groupware/AgendaTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AgendaTest extends Specification {
then: 'the result matches expected'
agenda as String ==~ /BEGIN:VTODO\r
DTSTAMP:\d{8}T\d{6}Z\r
CONCEPT:https:\/\/ical4j.org\/extensions\/concept\/action\/AGENDA\r
CONCEPT:ical4j:concept:action:agenda\r
END:VTODO\r\n/

when: 'the agenda is updated'
Expand All @@ -30,28 +30,28 @@ END:VTODO\r\n/
then: 'the result matches expected'
components as String ==~ /BEGIN:VTODO\r
DTSTAMP:\d{8}T\d{6}Z\r
CONCEPT:https:\/\/ical4j.org\/extensions\/concept\/action\/AGENDA\r
CONCEPT:ical4j:concept:action:agenda\r
SUMMARY:Annual General Meeting \(AGM\)\r
UID:1\r
LINK;VALUE=UID;LINKREL=next:2\r
END:VTODO\r
BEGIN:VTODO\r
DTSTAMP:\d{8}T\d{6}Z\r
CONCEPT:https:\/\/ical4j.org\/extensions\/concept\/action\/AGENDA\r
CONCEPT:ical4j:concept:action:agenda\r
SUMMARY:Welcome and introductions\r
UID:2\r
LINK;VALUE=UID;LINKREL=next:3\r
END:VTODO\r
BEGIN:VTODO\r
DTSTAMP:\d{8}T\d{6}Z\r
CONCEPT:https:\/\/ical4j.org\/extensions\/concept\/action\/AGENDA\r
CONCEPT:ical4j:concept:action:agenda\r
SUMMARY:The year in review\r
UID:3\r
LINK;VALUE=UID;LINKREL=next:4\r
END:VTODO\r
BEGIN:VTODO\r
DTSTAMP:\d{8}T\d{6}Z\r
CONCEPT:https:\/\/ical4j.org\/extensions\/concept\/action\/AGENDA\r
CONCEPT:ical4j:concept:action:agenda\r
SUMMARY:Financial results\r
UID:4\r
END:VTODO\r\n/
Expand Down
10 changes: 5 additions & 5 deletions src/test/groovy/org/ical4j/template/groupware/MeetingTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class MeetingTest extends Specification {
then: 'the result matches expected'
meeting as String ==~ /BEGIN:VEVENT\r
DTSTAMP:\d{8}T\d{6}Z\r
CONCEPT:https:\/\/ical4j.org\/extensions\/concept\/event\/MEETING\r
CONCEPT:ical4j:concept:event:meeting\r
END:VEVENT\r\n/

when: 'the meeting is updated with more details'
Expand All @@ -40,7 +40,7 @@ END:VEVENT\r\n/
then: 'the result matches expected'
meeting as String ==~ /BEGIN:VEVENT\r
DTSTAMP:\d{8}T\d{6}Z\r
CONCEPT:https:\/\/ical4j.org\/extensions\/concept\/event\/MEETING\r
CONCEPT:ical4j:concept:event:meeting\r
DTSTART;TZID=America\/New_York:20231113T000000\r
DURATION:PT30M\r
ORGANIZER;CN=Big Boss:mailto:boss@example.com\r
Expand All @@ -60,7 +60,7 @@ DTSTAMP:\d{8}T\d{6}Z\r
DTSTART;TZID=America\/New_York:20231113T000000\r
DURATION:PT30M\r
ORGANIZER;CN=Big Boss:mailto:boss@example.com\r
CONCEPT:https:\/\/ical4j.org\/extensions\/concept\/event\/MEETING\r
CONCEPT:ical4j:concept:event:meeting\r
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=CHAIR:mailto:lead-by@example.com\r
BEGIN:PARTICIPANT\r
PARTICIPANT-TYPE:CONTACT\r
Expand Down Expand Up @@ -92,7 +92,7 @@ END:VEVENT\r\n/
then: 'the result matches expected'
meeting as String ==~ /BEGIN:VEVENT\r
DTSTAMP:\d{8}T\d{6}Z\r
CONCEPT:https:\/\/ical4j.org\/extensions\/concept\/event\/MEETING\r
CONCEPT:ical4j:concept:event:meeting\r
DTSTART;TZID=Z:20231111T110000Z\r
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=CHAIR:mailto:vanessa@example.com\r
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE:mailto:joe@example.com\r
Expand Down Expand Up @@ -140,7 +140,7 @@ END:VEVENT\r\n/
meeting as String ==~ /BEGIN:VEVENT\r
DTSTAMP:\d{8}T\d{6}Z\r
DTSTART:20231104T093000\r
CONCEPT:https:\/\/ical4j.org\/extensions\/concept\/event\/MEETING\r
CONCEPT:ical4j:concept:event:meeting\r
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=CHAIR:mailto:vanessa@example.com\r
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE:mailto:joe@example.com\r
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=OPT-PARTICIPANT;PARTSTAT=NEEDS-ACTION:mailto:sally@example.com\r
Expand Down

0 comments on commit e669baf

Please sign in to comment.