diff --git a/core/testing/src/main/java/io/github/droidkaigi/confsched/testing/MiniRobots.kt b/core/testing/src/main/java/io/github/droidkaigi/confsched/testing/MiniRobots.kt index f1919e237..15b92e88d 100644 --- a/core/testing/src/main/java/io/github/droidkaigi/confsched/testing/MiniRobots.kt +++ b/core/testing/src/main/java/io/github/droidkaigi/confsched/testing/MiniRobots.kt @@ -145,13 +145,13 @@ interface EventMapServerRobot { Error, } - fun setupContributorServer(serverStatus: ServerStatus) + fun setupEventMapServer(serverStatus: ServerStatus) } class DefaultEventMapServerRobot @Inject constructor(contributorsApiClient: EventMapApiClient) : EventMapServerRobot { private val fakeEventMapApiClient = contributorsApiClient as FakeEventMapApiClient - override fun setupContributorServer(serverStatus: EventMapServerRobot.ServerStatus) { + override fun setupEventMapServer(serverStatus: EventMapServerRobot.ServerStatus) { fakeEventMapApiClient.setup( when (serverStatus) { EventMapServerRobot.ServerStatus.Operational -> FakeEventMapApiClient.Status.Operational diff --git a/feature/eventmap/src/androidUnitTest/kotlin/io/github/droidkaigi/confsched/eventmap/EventMapScreenTest.kt b/feature/eventmap/src/androidUnitTest/kotlin/io/github/droidkaigi/confsched/eventmap/EventMapScreenTest.kt index b2c0c06cf..8b5230a7a 100644 --- a/feature/eventmap/src/androidUnitTest/kotlin/io/github/droidkaigi/confsched/eventmap/EventMapScreenTest.kt +++ b/feature/eventmap/src/androidUnitTest/kotlin/io/github/droidkaigi/confsched/eventmap/EventMapScreenTest.kt @@ -28,7 +28,7 @@ class EventMapScreenTest { @Test fun checkScreenContent() { runRobot(eventMapScreenRobot) { - setupContributorServer(EventMapServerRobot.ServerStatus.Operational) + setupEventMapServer(EventMapServerRobot.ServerStatus.Operational) setupScreenContent() captureScreenWithChecks( @@ -40,7 +40,7 @@ class EventMapScreenTest { @Test fun checkErrorScreenContent() { runRobot(eventMapScreenRobot) { - setupContributorServer(EventMapServerRobot.ServerStatus.Error) + setupEventMapServer(EventMapServerRobot.ServerStatus.Error) setupScreenContent() captureScreenWithChecks(