Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
VREMSoftwareDevelopment committed Jan 27, 2024
1 parent 27ea0a1 commit 61804c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Build Properties
#Sat Jan 27 09:53:57 EST 2024
version_build=4
#Sat Jan 27 13:23:34 EST 2024
version_build=5
version_major=3
version_minor=1
version_patch=2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class ConnectionViewTest {
// setup
val wiFiAdditional = withWiFiAdditional()
val connection = withConnection(wiFiAdditional)
val expectedText = mainActivity.getString(R.string.current_connection)
whenever(settings.wiFiBand()).thenReturn(WiFiBand.GHZ2)
whenever(settings.connectionViewType()).thenReturn(ConnectionViewType.COMPLETE)
withConnectionInformation(connection)
Expand All @@ -123,8 +124,7 @@ class ConnectionViewTest {
val linkSpeedView = view.findViewById<TextView>(R.id.linkSpeed)
assertEquals(View.VISIBLE, linkSpeedView.visibility)
assertEquals(wiFiConnection.linkSpeed.toString() + WifiInfo.LINK_SPEED_UNITS, linkSpeedView.text.toString())
val currentConnectionView = view.findViewById<TextView>(R.id.currentConnection)
assertEquals("Current connection", currentConnectionView.text.toString())
assertEquals(expectedText, view.findViewById<TextView>(R.id.currentConnection).text.toString())
verify(warningView).update(wiFiData)
}

Expand Down

0 comments on commit 61804c2

Please sign in to comment.