/** * Method to validate mixed scenario use of {@link DataStore}. */ protected void doTestSingleThread() throws Exception { doTestMultiThreaded(ds, 1); }
/** * Method to validate mixed scenario use of {@link DataStore} in * multi-threaded concurrent environment. */ protected void doTestMultiThreaded() throws Exception { doTestMultiThreaded(ds, 4); }
/** * Testcase to validate mixed scenario use of {@link DataStore} in * multi-threaded concurrent environment. */ @Test public void testMultiThreaded() { try { long start = System.currentTimeMillis(); LOG.info("Testcase: " + this.getClass().getName() + "#testMultiThreaded, testDir=" + dataStoreDir); doTestMultiThreaded(); LOG.info("Testcase: " + this.getClass().getName() + "#testMultiThreaded finished, time taken = [" + (System.currentTimeMillis() - start) + "]ms"); } catch (Exception e) { LOG.error("error:", e); fail(e.getMessage()); } }