File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
app/src/androidTest/java/com/pcapplusplus/toyvpn Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,15 @@ class StatsScreenTest {
226226 @Test
227227 fun testVpnDisconnecting () {
228228 val vpnConnectionStateLiveData = MutableLiveData (VpnConnectionState .DISCONNECTING )
229+ val clientAddressLiveData = MutableLiveData (" 10.0.0.1" )
230+ val topDnsDomainsLiveData = MutableLiveData <List <DomainData >>()
231+ val topTlsServerNamesLiveData = MutableLiveData <List <DomainData >>()
232+
229233 every { mockViewModel.vpnConnectionState } returns vpnConnectionStateLiveData
234+ every { mockViewModel.clientAddress } returns clientAddressLiveData
235+ every { mockViewModel.topDnsDomains } returns topDnsDomainsLiveData
236+ every { mockViewModel.topTlsServerNames } returns topTlsServerNamesLiveData
237+
230238// renderScreen(vpnConnectionState = VpnConnectionState.DISCONNECTING)
231239
232240 composeTestRule.setContent {
You can’t perform that action at this time.
0 commit comments