Exemple #1
0
 /** Drops users. */
 @Test
 public void dropUsers() {
   no(new DropUser(NAME), testSession);
   no(new DropUser(NAME), adminSession);
   ok(new Exit(), testSession);
   // give the server some time to close the client session
   Performance.sleep(50);
   ok(new DropUser(NAME), adminSession);
 }
Exemple #2
0
 /** Clean up method. */
 @After
 public void cleanUp() {
   try {
     testSession.close();
     adminSession.execute(new DropDB(RENAMED));
     adminSession.execute(new DropDB(NAME));
     adminSession.close();
     // give the server some time to clean up the sessions before next test
     Performance.sleep(100);
   } catch (final Exception ex) {
     fail(Util.message(ex));
   }
 }