forked from codeZeilen/DAV-smalltalk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into RemoveNamespacesDuringXmlParsing
- Loading branch information
Showing
45 changed files
with
318 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
repository/DAV.package/CalDavCalendar.class/instance/addEvent..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
accessing | ||
events handling | ||
addEvent: anEvent | ||
|
||
self eventsDictionary add: anEvent url schemeSpecificPart asSymbol -> anEvent. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
repository/DAV.package/CalDavCalendar.class/instance/removeEvent..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
events handling | ||
removeEvent: anEvent | ||
|
||
| key | | ||
|
||
self client deleteEvent: anEvent. | ||
key := anEvent url schemeSpecificPart asSymbol. | ||
self eventsDictionary removeKey: key ifAbsent: []. | ||
anEvent setDirty. | ||
self removeEventLocal: anEvent. | ||
|
||
^ anEvent | ||
|
11 changes: 11 additions & 0 deletions
11
repository/DAV.package/CalDavCalendar.class/instance/removeEventLocal..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
events handling | ||
removeEventLocal: anEvent | ||
|
||
| key | | ||
|
||
key := anEvent url schemeSpecificPart asSymbol. | ||
self eventsDictionary removeKey: key ifAbsent: []. | ||
anEvent setDirty. | ||
|
||
^ anEvent | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
3 changes: 3 additions & 0 deletions
3
repository/DAV.package/CalDavCalendarTest.class/instance/calendar..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
calendar: anObject | ||
calendar := anObject |
3 changes: 3 additions & 0 deletions
3
repository/DAV.package/CalDavCalendarTest.class/instance/calendar.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
calendar | ||
^ calendar |
4 changes: 4 additions & 0 deletions
4
repository/DAV.package/CalDavCalendarTest.class/instance/calendarUrl.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
helpers | ||
calendarUrl | ||
|
||
^ 'https//calendarUrl/remote' |
3 changes: 3 additions & 0 deletions
3
repository/DAV.package/CalDavCalendarTest.class/instance/client..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
client: anObject | ||
client := anObject |
3 changes: 3 additions & 0 deletions
3
repository/DAV.package/CalDavCalendarTest.class/instance/client.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
client | ||
^ client |
8 changes: 8 additions & 0 deletions
8
repository/DAV.package/CalDavCalendarTest.class/instance/setUp.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
setup | ||
setUp | ||
|
||
super setUp. | ||
|
||
self calendar: (CalDavCalendar new url: self calendarUrl asUrl). | ||
self client: SabreCalDavClient new. | ||
CalDavClient registerClient: client for: self calendarUrl |
10 changes: 10 additions & 0 deletions
10
repository/DAV.package/CalDavCalendarTest.class/instance/testAddEvent.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
tests - handling events | ||
testAddEvent | ||
|
||
| event key | | ||
|
||
event := self calendar newEvent. | ||
key := event url schemeSpecificPart asSymbol. | ||
self calendar addEvent: event. | ||
|
||
self assert: (self calendar eventsDictionary keys includes: key) |
16 changes: 16 additions & 0 deletions
16
repository/DAV.package/CalDavCalendarTest.class/instance/testCreateEvent.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
tests - handling events | ||
testCreateEvent | ||
|
||
| summary startDate endDate event | | ||
|
||
summary := 'aSummary'. | ||
startDate := (DateAndTime year: 2019 month: #July day: 15 hour: 14 minute: 30). | ||
endDate := (DateAndTime year: 2019 month: #July day: 15 hour: 17 minute: 0). | ||
|
||
event := self calendar createEvent: summary | ||
StartDate: startDate | ||
EndDate: endDate. | ||
|
||
self assert: summary equals: event summary. | ||
self assert: startDate equals: event start. | ||
self assert: endDate equals: event end |
19 changes: 19 additions & 0 deletions
19
repository/DAV.package/CalDavCalendarTest.class/instance/testCreateEventWithRecurrence.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
tests - handling events | ||
testCreateEventWithRecurrence | ||
|
||
| summary startDate endDate recurrence event | | ||
|
||
summary := 'aSummary'. | ||
startDate := (DateAndTime year: 2019 month: #July day: 15 hour: 14 minute: 30). | ||
endDate := (DateAndTime year: 2019 month: #July day: 15 hour: 17 minute: 0). | ||
recurrence := ICRecurrenceRule weekly. | ||
|
||
event := self calendar createEvent: summary | ||
StartDate: startDate | ||
EndDate: endDate | ||
Recurrence: recurrence. | ||
|
||
self assert: summary equals: event summary. | ||
self assert: startDate equals: event start. | ||
self assert: endDate equals: event end. | ||
self assert: (event recurrenceRules includes: recurrence) |
14 changes: 14 additions & 0 deletions
14
repository/DAV.package/CalDavCalendarTest.class/instance/testCreateFullDayEvent.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
tests - handling events | ||
testCreateFullDayEvent | ||
|
||
| summary date event | | ||
|
||
summary := 'aSummary'. | ||
date := (DateAndTime year: 2019 month: #July day: 15 hour: 14 minute: 30). | ||
|
||
event := self calendar createFullDayEvent: summary | ||
Date: date. | ||
|
||
self assert: summary equals: event summary. | ||
self assert: date equals: event start. | ||
self assert: (date + 1 day) equals: event end |
18 changes: 18 additions & 0 deletions
18
...ory/DAV.package/CalDavCalendarTest.class/instance/testCreateFullDayEventWithRecurrence.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
tests - handling events | ||
testCreateFullDayEventWithRecurrence | ||
|
||
| summary date event recurrence | | ||
|
||
summary := 'aSummary'. | ||
date := (DateAndTime year: 2019 month: #July day: 15 hour: 14 minute: 30). | ||
recurrence := ICRecurrenceRule weekly. | ||
|
||
event := self calendar createFullDayEvent: summary | ||
Date: date | ||
Recurrence: recurrence. | ||
|
||
self assert: summary equals: event summary. | ||
self assert: date equals: event start. | ||
self assert: (date + 1 day) equals: event end. | ||
self assert: (event recurrenceRules includes: recurrence) | ||
|
11 changes: 11 additions & 0 deletions
11
repository/DAV.package/CalDavCalendarTest.class/instance/testRemoveEvent.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
tests - handling events | ||
testRemoveEvent | ||
|
||
| event key | | ||
|
||
event := self calendar newEvent. | ||
key := event url schemeSpecificPart asSymbol. | ||
self calendar addEvent: event. | ||
self calendar removeEventLocal: event. | ||
|
||
self assert: ((self calendar eventsDictionary keys includes: key) not) |
16 changes: 16 additions & 0 deletions
16
repository/DAV.package/CalDavCalendarTest.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"calendar" : "TSP 7/24/2019 18:15", | ||
"calendar:" : "TSP 7/24/2019 18:15", | ||
"calendarUrl" : "TSP 7/24/2019 18:14", | ||
"client" : "TSP 7/24/2019 18:14", | ||
"client:" : "TSP 7/24/2019 18:14", | ||
"setUp" : "TSP 7/24/2019 18:15", | ||
"testAddEvent" : "TSP 7/24/2019 18:28", | ||
"testCreateEvent" : "TSP 7/24/2019 18:23", | ||
"testCreateEventWithRecurrence" : "TSP 7/24/2019 18:23", | ||
"testCreateFullDayEvent" : "TSP 7/24/2019 18:33", | ||
"testCreateFullDayEventWithRecurrence" : "TSP 7/24/2019 18:34", | ||
"testRemoveEvent" : "TSP 7/24/2019 18:30" } } |
15 changes: 15 additions & 0 deletions
15
repository/DAV.package/CalDavCalendarTest.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"category" : "DAV-Cal-Tests", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
"client", | ||
"calendar" ], | ||
"name" : "CalDavCalendarTest", | ||
"pools" : [ | ||
], | ||
"super" : "WebClientServerTest", | ||
"type" : "normal" } |
3 changes: 3 additions & 0 deletions
3
repository/DAV.package/CalDavClientTest.class/instance/calendar..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
calendar: anObject | ||
calendar := anObject |
3 changes: 3 additions & 0 deletions
3
repository/DAV.package/CalDavClientTest.class/instance/calendar.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
calendar | ||
^ calendar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
manipulating | ||
accessing | ||
setClean | ||
|
||
dirty := false. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
manipulating | ||
accessing | ||
setDirty | ||
|
||
dirty := true. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
3 changes: 3 additions & 0 deletions
3
repository/DAV.package/CalDavEventTest.class/instance/calendar..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
calendar: anObject | ||
calendar := anObject |
3 changes: 3 additions & 0 deletions
3
repository/DAV.package/CalDavEventTest.class/instance/calendar.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
calendar | ||
^ calendar |
4 changes: 4 additions & 0 deletions
4
repository/DAV.package/CalDavEventTest.class/instance/calendarUrl.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
helpers | ||
calendarUrl | ||
|
||
^ 'https//calendarUrl/remote' |
3 changes: 3 additions & 0 deletions
3
repository/DAV.package/CalDavEventTest.class/instance/client..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
client: anObject | ||
client := anObject |
3 changes: 3 additions & 0 deletions
3
repository/DAV.package/CalDavEventTest.class/instance/client.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
client | ||
^ client |
8 changes: 8 additions & 0 deletions
8
repository/DAV.package/CalDavEventTest.class/instance/setUp.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
setup | ||
setUp | ||
|
||
super setUp. | ||
|
||
self calendar: (CalDavCalendar new url: self calendarUrl asUrl). | ||
self client: SabreCalDavClient new. | ||
CalDavClient registerClient: client for: self calendarUrl |
Oops, something went wrong.