+ whenever(core.getPostReply(anyString())).then { allPostReplies[it[0]].asOptional() }
+ whenever(core.getReplies(anyString())).then { perPostReplies[it[0]].asList() }
+ whenever(core.getAlbum(anyString())).then { allAlbums[it[0]] }
+ whenever(core.getImage(anyString())).then { allImages[it[0]]}
+ whenever(core.getImage(anyString(), anyBoolean())).then { allImages[it[0]]}
+ }
+
+ @Before
+ fun setupWebInterface() {
+ whenever(webInterface.getCurrentSoneCreatingSession(eq(toadletContext))).thenReturn(currentSone)
+ whenever(webInterface.getCurrentSone(eq(toadletContext), anyBoolean())).thenReturn(currentSone)
+ whenever(webInterface.getCurrentSoneWithoutCreatingSession(eq(toadletContext))).thenReturn(currentSone)
+ whenever(webInterface.getNotifications(currentSone)).thenReturn(emptyList())