}
private 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.getCurrentSone(eq(toadletContext))).thenReturn(currentSone)
whenever(webInterface.getNotifications(currentSone)).then { notifications.values }
whenever(webInterface.getNotification(anyString())).then { notifications[it[0]].asOptional() }
whenever(webInterface.translation).thenReturn(translation)
}
fun unsetCurrentSone() {
- whenever(webInterface.getCurrentSoneCreatingSession(eq(toadletContext))).thenReturn(null)
- whenever(webInterface.getCurrentSone(eq(toadletContext), anyBoolean())).thenReturn(null)
- whenever(webInterface.getCurrentSoneWithoutCreatingSession(eq(toadletContext))).thenReturn(null)
+ whenever(webInterface.getCurrentSone(eq(toadletContext))).thenReturn(null)
}
fun addOwnIdentity(ownIdentity: OwnIdentity) {