Skip to content

Commit

Permalink
Merge pull request #62 from DroidKaigi/takahirom/fix-test-server-name…
Browse files Browse the repository at this point in the history
…/2024-06-23

Change event map server method name
  • Loading branch information
takahirom authored Jun 23, 2024
2 parents 9db8a08 + 97e65e1 commit 0fece23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class EventMapScreenTest {
@Test
fun checkScreenContent() {
runRobot(eventMapScreenRobot) {
setupContributorServer(EventMapServerRobot.ServerStatus.Operational)
setupEventMapServer(EventMapServerRobot.ServerStatus.Operational)
setupScreenContent()

captureScreenWithChecks(
Expand All @@ -40,7 +40,7 @@ class EventMapScreenTest {
@Test
fun checkErrorScreenContent() {
runRobot(eventMapScreenRobot) {
setupContributorServer(EventMapServerRobot.ServerStatus.Error)
setupEventMapServer(EventMapServerRobot.ServerStatus.Error)
setupScreenContent()

captureScreenWithChecks(
Expand Down

0 comments on commit 0fece23

Please sign in to comment.