Exemple #1
0
 @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();
   }
 }
Exemple #2
0
 @Test
 public void testGetAnonLevel() {
   try {
     int l = proxy.getAnonLevel();
     assertTrue(l == 5);
   } catch (IOException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }
Exemple #3
0
 @Test
 public void testGetGeo() {
   String ct;
   ct = proxy.getCountry();
   assertEquals("中国", ct);
 }