projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add some missing tests for write access
[Sone.git]
/
src
/
test
/
kotlin
/
net
/
pterodactylus
/
sone
/
fcp
/
LikePostCommandTest.kt
diff --git
a/src/test/kotlin/net/pterodactylus/sone/fcp/LikePostCommandTest.kt
b/src/test/kotlin/net/pterodactylus/sone/fcp/LikePostCommandTest.kt
index
f88e138
..
792c1b7
100644
(file)
--- a/
src/test/kotlin/net/pterodactylus/sone/fcp/LikePostCommandTest.kt
+++ b/
src/test/kotlin/net/pterodactylus/sone/fcp/LikePostCommandTest.kt
@@
-29,6
+29,11
@@
class LikePostCommandTest : SoneCommandTest() {
}
@Test
+ fun `command requires write access`() {
+ assertThat(command.requiresWriteAccess(), equalTo(true))
+ }
+
+ @Test
fun `request without parameters results in FCP exception`() {
requestWithoutAnyParameterResultsInFcpException()
}