@Test public void testConstructorWithProxyDisconnected() { when(mockProxyNetworkInfo.isConnected()).thenReturn(false); when(mockProxyNetworkInfo.getType()).thenReturn(ConnectivityManager.TYPE_PROXY); 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();  }