From 93316f95b34f0db512b01cb9f418deaa64ed5891 Mon Sep 17 00:00:00 2001 From: Akihiro Nagai <77012577+314systems@users.noreply.github.com> Date: Thu, 1 Jan 2026 00:00:08 +0900 Subject: [PATCH 1/2] update WiFiChannelCountryTest to use locale-specific display country name --- .../com/vrem/wifianalyzer/wifi/band/WiFiChannelCountryTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/test/kotlin/com/vrem/wifianalyzer/wifi/band/WiFiChannelCountryTest.kt b/app/src/test/kotlin/com/vrem/wifianalyzer/wifi/band/WiFiChannelCountryTest.kt index 42272a22..cf4e3e40 100644 --- a/app/src/test/kotlin/com/vrem/wifianalyzer/wifi/band/WiFiChannelCountryTest.kt +++ b/app/src/test/kotlin/com/vrem/wifianalyzer/wifi/band/WiFiChannelCountryTest.kt @@ -33,7 +33,7 @@ class WiFiChannelCountryTest { val expected = Locale.US val actual = WiFiChannelCountry.find(expected.country) assertThat(actual.countryCode).isEqualTo(expected.country) - assertThat(actual.countryName(expected)).isEqualTo(expected.displayCountry) + assertThat(actual.countryName(expected)).isEqualTo(expected.getDisplayCountry(expected)) } @Test From d3e40cdcbbdd845f43884bce1796e459de9a0954 Mon Sep 17 00:00:00 2001 From: Akihiro Nagai <77012577+314systems@users.noreply.github.com> Date: Thu, 1 Jan 2026 13:03:55 +0900 Subject: [PATCH 2/2] update WiFiChannelsParameterizedTest imports and lambda syntax --- .../wifianalyzer/wifi/band/WiFiChannelsParameterizedTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/test/kotlin/com/vrem/wifianalyzer/wifi/band/WiFiChannelsParameterizedTest.kt b/app/src/test/kotlin/com/vrem/wifianalyzer/wifi/band/WiFiChannelsParameterizedTest.kt index 0447d2bc..94e3124a 100644 --- a/app/src/test/kotlin/com/vrem/wifianalyzer/wifi/band/WiFiChannelsParameterizedTest.kt +++ b/app/src/test/kotlin/com/vrem/wifianalyzer/wifi/band/WiFiChannelsParameterizedTest.kt @@ -20,11 +20,11 @@ package com.vrem.wifianalyzer.wifi.band import com.vrem.util.EMPTY import com.vrem.wifianalyzer.wifi.model.WiFiWidth import org.assertj.core.api.Assertions.assertThat +import org.junit.Test import org.junit.runner.RunWith import org.junit.runners.Parameterized import org.junit.runners.Parameterized.Parameter import org.junit.runners.Parameterized.Parameters -import kotlin.test.Test @RunWith(Parameterized::class) class WiFiChannelsParameterizedTest { @@ -166,7 +166,7 @@ class WiFiChannelsParameterizedTest { @Test fun availableChannelsUsingWiFiBandAndCountry() { countries.forEach { country -> - assertThat(fixture.availableChannels(wiFiBand, country.countryCode).map { it -> it.channel }) + assertThat(fixture.availableChannels(wiFiBand, country.countryCode).map { it.channel }) .describedAs("Country: ${country.countryCode}") .containsExactlyElementsOf(country.channels(wiFiBand)) }