Skip to content
Open
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 @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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))
}
Expand Down