-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(calendar): delete entry command without creating CalEntry
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
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
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,13 +1,20 @@ | ||
package cz.smarteon.loxone.calendar | ||
|
||
import cz.smarteon.loxone.LoxoneUuid | ||
import org.junit.jupiter.api.Test | ||
import strikt.api.expectThat | ||
import strikt.assertions.isEqualTo | ||
|
||
class CalendarCommandTest { | ||
|
||
@Test | ||
fun `should create command`() { | ||
fun `should create get command`() { | ||
expectThat(CalendarCommand.getEntries().command).isEqualTo("jdev/sps/calendargetentries/") | ||
} | ||
|
||
@Test | ||
fun `should create delete command`() { | ||
expectThat(CalendarCommand.deleteEntry(LoxoneUuid("00000000-0000-0000-0000000000000000")).command) | ||
.isEqualTo("jdev/sps/calendardeleteentry/00000000-0000-0000-0000000000000000") | ||
} | ||
} |