Skip to content

Commit cd444ed

Browse files
committed
Replaced Collection with higher Iterable interface and list with set.
1 parent bfae74d commit cd444ed

19 files changed

Lines changed: 35 additions & 35 deletions

File tree

app/src/test/java/com/mitteloupe/whoami/navigation/mapper/HistoryNavigationEventDestinationMapperTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class HistoryNavigationEventDestinationMapperTest(
1919
companion object {
2020
@JvmStatic
2121
@Parameters(name = "Given {0}")
22-
fun data(): Collection<Array<*>> = listOf(
22+
fun data(): Iterable<Array<*>> = setOf(
2323
testCase(Back) { navController ->
2424
verify(navController).navigateUp()
2525
}

datasource/implementation/src/test/java/com/mitteloupe/whoami/datasource/history/mapper/NewIpAddressRecordLocalMapperTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class NewIpAddressRecordLocalMapperTest(
2424
companion object {
2525
@JvmStatic
2626
@Parameters(name = "Given {0}, time then returns {2}")
27-
fun data(): Collection<Array<*>> = listOf(
27+
fun data(): Iterable<Array<*>> = setOf(
2828
testCase(
2929
testTitle = "all nulls",
3030
ipAddress = "1.1.1.1",

datasource/implementation/src/test/java/com/mitteloupe/whoami/datasource/history/mapper/SavedIpAddressRecordDataMapperTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class SavedIpAddressRecordDataMapperTest(
2121
companion object {
2222
@JvmStatic
2323
@Parameters(name = "Given {0}, time then returns {2}")
24-
fun data(): Collection<Array<*>> = listOf(
24+
fun data(): Iterable<Array<*>> = setOf(
2525
testCase(
2626
testTitle = "all nulls",
2727
ipAddress = "1.1.1.1",

datasource/implementation/src/test/java/com/mitteloupe/whoami/datasource/ipaddress/mapper/IpAddressDataMapperTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class IpAddressDataMapperTest(
1616
companion object {
1717
@JvmStatic
1818
@Parameters(name = "Given {0}")
19-
fun data(): Collection<Array<*>> = listOf(
19+
fun data(): Iterable<Array<*>> = setOf(
2020
testCase("1.1.1.1"),
2121
testCase("2.3.4.5")
2222
)

datasource/implementation/src/test/java/com/mitteloupe/whoami/datasource/ipaddressinformation/mapper/IpAddressInformationDataMapperTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class IpAddressInformationDataMapperTest(
1717
companion object {
1818
@JvmStatic
1919
@Parameters(name = "Given {0} then returns {1}")
20-
fun data(): Collection<Array<*>> = listOf(
20+
fun data(): Iterable<Array<*>> = setOf(
2121
testCase(
2222
city = "New York",
2323
region = "New York",

history/data/src/test/java/com/mitteloupe/whoami/history/data/mapper/HistoryRecordDeletionDataMapperTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class HistoryRecordDeletionDataMapperTest(
1717
companion object {
1818
@JvmStatic
1919
@Parameters(name = "Given {0} then returns {2}")
20-
fun data(): Collection<Array<*>> = listOf(
20+
fun data(): Iterable<Array<*>> = setOf(
2121
testCase(ipAddress = "1.2.3.4"),
2222
testCase(ipAddress = "4.3.2.1")
2323
)

history/data/src/test/java/com/mitteloupe/whoami/history/data/mapper/SavedIpAddressRecordDomainMapperTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class SavedIpAddressRecordDomainMapperTest(
1818
companion object {
1919
@JvmStatic
2020
@Parameters(name = "Given {0} then returns {2}")
21-
fun data(): Collection<Array<*>> = listOf(
21+
fun data(): Iterable<Array<*>> = setOf(
2222
testCase(
2323
testTitle = "all set",
2424
ipAddress = "1.2.3.4",

history/presentation/src/test/java/com/mitteloupe/whoami/history/presentation/mapper/DeleteHistoryRecordRequestDomainMapperTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class DeleteHistoryRecordRequestDomainMapperTest(
1818
companion object {
1919
@JvmStatic
2020
@Parameters(name = "Given {0} then returns {2}")
21-
fun data(): Collection<Array<*>> = listOf(
21+
fun data(): Iterable<Array<*>> = setOf(
2222
testCase(
2323
testTitle = "case 1",
2424
ipAddress = "1.1.1.1"

history/presentation/src/test/java/com/mitteloupe/whoami/history/presentation/mapper/SavedIpAddressRecordPresentationMapperTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class SavedIpAddressRecordPresentationMapperTest(
1818
companion object {
1919
@JvmStatic
2020
@Parameters(name = "Given {0} then returns {2}")
21-
fun data(): Collection<Array<*>> = listOf(
21+
fun data(): Iterable<Array<*>> = setOf(
2222
testCase(
2323
testTitle = "all nulls",
2424
ipAddress = "1.1.1.1",

history/ui/src/test/java/com/mitteloupe/whoami/history/ui/mapper/HistoryRecordDeletionPresentationMapperTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class HistoryRecordDeletionPresentationMapperTest(
1717
companion object {
1818
@JvmStatic
1919
@Parameters(name = "Given {0} then returns {1}")
20-
fun data(): Collection<Array<*>> = listOf(
20+
fun data(): Iterable<Array<*>> = setOf(
2121
testCase("0.0.0.0"),
2222
testCase("255.255.255.255")
2323
)

0 commit comments

Comments
 (0)