/** 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); } }
/** 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); } }