Exemplo n.º 1
0
 @Override
 public void close() throws Exception {
   super.close();
   if (!openCalled) {
     fail("Open was not called before close.");
   }
   closeCalled = true;
 }
Exemplo n.º 2
0
 @Override
 public void open(Configuration parameters) throws Exception {
   super.open(parameters);
   if (closeCalled) {
     fail("Close called before open.");
   }
   openCalled = true;
 }