Example #1
0
 /** Test the error case of openConnection (for MemStore). */
 @Test
 public void testOpenConnectionWithTxn() {
   try {
     store.openConnection(new MockTransaction(), null);
     fail("Failed to rcv an expected exceptio");
   } catch (UnsupportedOperationException e) {
   } catch (IOException e) {
     fail("openConnection() failed", e);
   }
 }
Example #2
0
 /** Test the normal case of openConnection (for MemStore). */
 @Test
 public void testOpenConnectionWithNullTxn() {
   try {
     store.openConnection(null, null).close();
   } catch (UnsupportedOperationException e) {
     fail("openConnection() failed", e);
   } catch (IOException e) {
     fail("openConnection() failed", e);
   }
 }