diff options
author | cyberta <cyberta@riseup.net> | 2020-01-31 11:05:26 -0600 |
---|---|---|
committer | cyberta <cyberta@riseup.net> | 2020-01-31 11:05:26 -0600 |
commit | c0fc9a2daa2ca65fe14cf79445b70cc369aca918 (patch) | |
tree | a2f628518ee41055fe36acc57b3c5ebe1060cb39 /app | |
parent | 3c130ce5f2741d4bc1c521507ab118a3006ec634 (diff) |
fix test
Diffstat (limited to 'app')
-rw-r--r-- | app/src/test/java/se/leap/bitmaskclient/tethering/TetheringStateManagerTest.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/src/test/java/se/leap/bitmaskclient/tethering/TetheringStateManagerTest.java b/app/src/test/java/se/leap/bitmaskclient/tethering/TetheringStateManagerTest.java index 2e6292a6..7aeaf4b9 100644 --- a/app/src/test/java/se/leap/bitmaskclient/tethering/TetheringStateManagerTest.java +++ b/app/src/test/java/se/leap/bitmaskclient/tethering/TetheringStateManagerTest.java @@ -303,18 +303,18 @@ public class TetheringStateManagerTest { when(mockWrapper.isWifiAPEnabled()).thenReturn(true); PowerMockito.whenNew(WifiManagerWrapper.class).withAnyArguments().thenReturn(mockWrapper); - //WifiTethering was switched on - TetheringObservable.setWifiTethering(true, "192.168.40.0/24", "rndis0"); - + //UsbTethering was switched on + TetheringObservable.setUsbTethering(true, "192.168.40.0/24", "rndis0"); assertEquals("192.168.40.0/24", observable.getTetheringState().usbAddress); assertEquals("192.168.40.0/24", observable.getTetheringState().lastSeenUsbAddress); assertEquals("rndis0", observable.getTetheringState().usbInterface); - assertEquals("rndis0", observable.getTetheringState().lastSeenUsbAddress); - //Wifi tethering was switched off - TetheringObservable.setWifiTethering(true, "", ""); + assertEquals("rndis0", observable.getTetheringState().lastSeenUsbInterface); + //UsbTethering tethering was switched off + TetheringObservable.setUsbTethering(true, "", ""); assertEquals("", observable.getTetheringState().usbAddress); assertEquals("192.168.40.0/24", observable.getTetheringState().lastSeenUsbAddress); assertEquals("", observable.getTetheringState().usbInterface); + assertEquals("rndis0", observable.getTetheringState().lastSeenUsbInterface); } |