mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Rename Test to follow naming convention
This commit is contained in:
+7
-7
@@ -36,7 +36,7 @@ import kotlinx.coroutines.test.runTest
|
|||||||
import org.junit.Rule
|
import org.junit.Rule
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
|
|
||||||
class CreateBaseRoomRootPresenterTest {
|
class StartChatPresenterTest {
|
||||||
@get:Rule
|
@get:Rule
|
||||||
val warmUpRule = WarmUpRule()
|
val warmUpRule = WarmUpRule()
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ class CreateBaseRoomRootPresenterTest {
|
|||||||
actionState.value = startDMFailureResult
|
actionState.value = startDMFailureResult
|
||||||
}
|
}
|
||||||
val startDMAction = FakeStartDMAction(executeResult = executeResult)
|
val startDMAction = FakeStartDMAction(executeResult = executeResult)
|
||||||
val presenter = createCreateRoomRootPresenter(startDMAction)
|
val presenter = createStartChatPresenter(startDMAction)
|
||||||
moleculeFlow(RecompositionMode.Immediate) {
|
moleculeFlow(RecompositionMode.Immediate) {
|
||||||
presenter.present()
|
presenter.present()
|
||||||
}.test {
|
}.test {
|
||||||
@@ -81,7 +81,7 @@ class CreateBaseRoomRootPresenterTest {
|
|||||||
actionState.value = startDMSuccessResult
|
actionState.value = startDMSuccessResult
|
||||||
}
|
}
|
||||||
val startDMAction = FakeStartDMAction(executeResult = executeResult)
|
val startDMAction = FakeStartDMAction(executeResult = executeResult)
|
||||||
val presenter = createCreateRoomRootPresenter(startDMAction)
|
val presenter = createStartChatPresenter(startDMAction)
|
||||||
moleculeFlow(RecompositionMode.Immediate) {
|
moleculeFlow(RecompositionMode.Immediate) {
|
||||||
presenter.present()
|
presenter.present()
|
||||||
}.test {
|
}.test {
|
||||||
@@ -112,7 +112,7 @@ class CreateBaseRoomRootPresenterTest {
|
|||||||
actionState.value = startDMConfirmationResult
|
actionState.value = startDMConfirmationResult
|
||||||
}
|
}
|
||||||
val startDMAction = FakeStartDMAction(executeResult = executeResult)
|
val startDMAction = FakeStartDMAction(executeResult = executeResult)
|
||||||
val presenter = createCreateRoomRootPresenter(startDMAction)
|
val presenter = createStartChatPresenter(startDMAction)
|
||||||
moleculeFlow(RecompositionMode.Immediate) {
|
moleculeFlow(RecompositionMode.Immediate) {
|
||||||
presenter.present()
|
presenter.present()
|
||||||
}.test {
|
}.test {
|
||||||
@@ -142,7 +142,7 @@ class CreateBaseRoomRootPresenterTest {
|
|||||||
actionState.value = startDMConfirmationResult
|
actionState.value = startDMConfirmationResult
|
||||||
}
|
}
|
||||||
val startDMAction = FakeStartDMAction(executeResult = executeResult)
|
val startDMAction = FakeStartDMAction(executeResult = executeResult)
|
||||||
val presenter = createCreateRoomRootPresenter(startDMAction)
|
val presenter = createStartChatPresenter(startDMAction)
|
||||||
moleculeFlow(RecompositionMode.Immediate) {
|
moleculeFlow(RecompositionMode.Immediate) {
|
||||||
presenter.present()
|
presenter.present()
|
||||||
}.test {
|
}.test {
|
||||||
@@ -167,7 +167,7 @@ class CreateBaseRoomRootPresenterTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `present - room directory search`() = runTest {
|
fun `present - room directory search`() = runTest {
|
||||||
val presenter = createCreateRoomRootPresenter(isRoomDirectorySearchEnabled = true)
|
val presenter = createStartChatPresenter(isRoomDirectorySearchEnabled = true)
|
||||||
moleculeFlow(RecompositionMode.Immediate) {
|
moleculeFlow(RecompositionMode.Immediate) {
|
||||||
presenter.present()
|
presenter.present()
|
||||||
}.test {
|
}.test {
|
||||||
@@ -178,7 +178,7 @@ class CreateBaseRoomRootPresenterTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun createCreateRoomRootPresenter(
|
private fun createStartChatPresenter(
|
||||||
startDMAction: StartDMAction = FakeStartDMAction(),
|
startDMAction: StartDMAction = FakeStartDMAction(),
|
||||||
isRoomDirectorySearchEnabled: Boolean = false,
|
isRoomDirectorySearchEnabled: Boolean = false,
|
||||||
): StartChatPresenter {
|
): StartChatPresenter {
|
||||||
Reference in New Issue
Block a user