Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change event map server method name #62

Merged
merged 1 commit into from
Jun 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading