@Test public void testIsAlive() { try { boolean b = proxy.isAlive(); assertTrue(b); double d = proxy.getDelay(); assertTrue(d > 0); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
@Test public void testGetAnonLevel() { try { int l = proxy.getAnonLevel(); assertTrue(l == 5); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
@Test public void testGetGeo() { String ct; ct = proxy.getCountry(); assertEquals("中国", ct); }