Skip to content

Commit 3052f89

Browse files
committed
Reordered test variables for improved readability.
1 parent 2beccdf commit 3052f89

4 files changed

Lines changed: 35 additions & 3 deletions

File tree

.idea/AndroidProjectSystem.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/deploymentTargetSelector.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

home/data/src/test/java/com/mitteloupe/whoami/home/data/repository/ConnectionDetailsRepositoryTest.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,11 @@ class ConnectionDetailsRepositoryTest {
134134
ipAddressInformationDataSource.ipAddressInformation(givenIpAddress)
135135
} throws throwable andThen defaultIpAddressInformation
136136

137-
val expectedState2 = ConnectionDetailsDomainModel.Disconnected
138-
givenConnectionDetailsDomainResolverMaps(givenState, expectedState2)
139-
140137
val expectedDomainException = UnknownDomainException(throwable)
141138
every { throwableDomainMapper.toDomain(throwable) } returns expectedDomainException
142139
val expectedState1 = ConnectionDetailsDomainModel.Error(expectedDomainException)
140+
val expectedState2 = ConnectionDetailsDomainModel.Disconnected
141+
givenConnectionDetailsDomainResolverMaps(givenState, expectedState2)
143142

144143
// When
145144
val actualValue = classUnderTest.connectionDetails().toList()

0 commit comments

Comments
 (0)