Exemple #1
0
 @AfterClass
 public static void tearDownAfterClass() {
   try {
     container.shutdown();
   } catch (Exception e) {
   }
 }
Exemple #2
0
 public List<User> getUsers() {
   HttpClientContainer container = null;
   List<User> friendsList;
   try {
     container = injector.getInstance(HttpClientContainer.class);
     Friends friends = injector.getInstance(Friends.class);
     String selfUid = injector.getInstance(AuthHelper.class).getSelfUid();
     friendsList = friends.get(selfUid);
   } finally {
     try {
       container.shutdown();
     } catch (Exception e) {
     }
   }
   return friendsList;
 }
Exemple #3
0
 @Override
 protected void finalize() throws Throwable {
   shutdown();
   super.finalize();
 }