From c0fc9a2daa2ca65fe14cf79445b70cc369aca918 Mon Sep 17 00:00:00 2001 From: cyberta Date: Fri, 31 Jan 2020 11:05:26 -0600 Subject: fix test --- .../bitmaskclient/tethering/TetheringStateManagerTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'app/src/test/java') 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); } -- cgit v1.2.3