Skip to content

Commit

Permalink
trying to get tests to work
Browse files Browse the repository at this point in the history
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
  • Loading branch information
rapterjet2004 committed Aug 14, 2024
1 parent ba9cfaa commit 9571a87
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import com.github.spotbugs.snom.SpotBugsTask
plugins {
id "org.jetbrains.kotlin.plugin.compose" version "2.0.10"
id "org.jetbrains.kotlin.kapt"
id 'com.google.devtools.ksp' version '2.0.0-1.0.24'
id 'com.google.devtools.ksp' version '2.0.10-1.0.24'
}

apply plugin: 'com.android.application'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@
*/
package com.nextcloud.talk.utils

import com.nextcloud.talk.models.domain.ConversationModel
import com.nextcloud.talk.models.json.capabilities.SpreedCapability
import com.nextcloud.talk.models.json.conversations.Conversation
import com.nextcloud.talk.users.UserManager
import junit.framework.TestCase
import org.junit.Test
import javax.inject.Inject

class ParticipantPermissionsTest : TestCase() {

@Inject
lateinit var userManager: UserManager

@Test
fun test_areFlagsSet() {
val spreedCapability = SpreedCapability()
Expand All @@ -25,7 +31,7 @@ class ParticipantPermissionsTest : TestCase() {
val attendeePermissions =
ParticipantPermissions(
spreedCapability,
conversation
ConversationModel.mapToConversationModel(conversation, userManager.currentUser.blockingGet())
)

assert(attendeePermissions.canPublishScreen)
Expand Down

0 comments on commit 9571a87

Please sign in to comment.