@Test public void testConstructorWithNoNetworks() { when(mockConnectivityMgr.getAllNetworks()).thenReturn(new Network[0]); when(mockConnectivityMgr.getNetworkInfo(mockProxyNetwork)).thenReturn(null); WearProxyNetworkAgent agent = new WearProxyNetworkAgent(mockConnectivityMgr); Assert.assertFalse(agent.isProxyConnected()); }
public boolean isProxyConnected() { return mIsProxyConnected; }
WearProxyNetworkAgent { public boolean isProxyConnected() { return mIsProxyConnected; } }
WearProxyNetworkAgent { public boolean isProxyConnected() { return mIsProxyConnected; } WearProxyNetworkAgent(ConnectivityManager connectivityManager); }
WearProxyNetworkAgent { public boolean isProxyConnected() { return mIsProxyConnected; } WearProxyNetworkAgent(ConnectivityManager connectivityManager); void addListener(Listener listener); boolean isProxyConnected(); }
WearProxyNetworkAgent { public boolean isProxyConnected() { return mIsProxyConnected; } WearProxyNetworkAgent(ConnectivityManager connectivityManager); void addListener(Listener listener); boolean isProxyConnected();  }