projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow adding replies without specific ID
[Sone.git]
/
src
/
test
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
ajax
/
JsonPageTest.kt
diff --git
a/src/test/kotlin/net/pterodactylus/sone/web/ajax/JsonPageTest.kt
b/src/test/kotlin/net/pterodactylus/sone/web/ajax/JsonPageTest.kt
index
5656874
..
60b2627
100644
(file)
--- a/
src/test/kotlin/net/pterodactylus/sone/web/ajax/JsonPageTest.kt
+++ b/
src/test/kotlin/net/pterodactylus/sone/web/ajax/JsonPageTest.kt
@@
-191,8
+191,8
@@
abstract class JsonPageTest(
whenever(this.recipientId).thenReturn(recipientId.asOptional())
}.also { newPosts[id] = it }
whenever(this.recipientId).thenReturn(recipientId.asOptional())
}.also { newPosts[id] = it }
- protected fun addReply(
id: String, reply: PostReply
) {
- replies[id] = reply
+ protected fun addReply(
reply: PostReply, id: String? = null
) {
+ replies[id
?: reply.id
] = reply
}
protected fun addNewReply(id: String, soneId: String, postId: String, postSoneId: String) {
}
protected fun addNewReply(id: String, soneId: String, postId: String, postSoneId: String) {