Exemplo n.º 1
0
 public void testConcurrentConnect() {
   try {
     tokenHandler.connect();
     tokenHandler.connect();
     tokenHandler.disconnect();
   } catch (TokenException ex) {
     fail(ex.toString());
   }
 }
Exemplo n.º 2
0
 public void testConcurrentLogin() {
   try {
     tokenHandler.connect();
     tokenHandler.loginPIN(pinCode);
     tokenHandler.loginPIN(pinCode);
     tokenHandler.logoutPIN();
     tokenHandler.disconnect();
   } catch (Exception e) {
     fail(e.toString());
   }
 }