/** * Unit test for ORDER BY. */ public void test_orderBy_threadSafe() throws Exception { final long timeout = 10000; // ms final int ntrials = 2000; final int poolSize = 10; doOrderByTest(50000/* maxInt */, timeout, ntrials, poolSize); }
public void testStressThreadSafe() throws Exception { for (int i = 0; i < 100; i++) { try { test_orderBy_threadSafe(); } catch (Throwable t) { fail("Failed after " + i + " trials", t); } } }
if (lastSolution != null) { if (c.compare(lastSolution, thisSolution) > 0) { fail("Solutions out of order: nvisited=" + (nsolutions + 1) + ", lastSolution:" + lastSolution + ", thisSolution=" log.info(getClass().getName() + "." + getName() + " : " + stats); assertNotNull(stats); assertEquals(ngiven, nsolutions); assertEquals(ngiven, stats.unitsIn.get()); assertEquals(ngiven, stats.unitsOut.get());
public void setUp() throws Exception { jnl = new Journal(getProperties()); queryEngine = new QueryEngine(jnl); queryEngine.init(); }
if (lastSolution != null) { if (c.compare(lastSolution, thisSolution) > 0) { fail("Solutions out of order: nvisited=" + (nsolutions + 1) + ", lastSolution:" + lastSolution + ", thisSolution=" log.info(getClass().getName() + "." + getName() + " : " + stats); assertNotNull(stats); assertEquals(ngiven, nsolutions); assertEquals(ngiven, stats.unitsIn.get()); assertEquals(ngiven, stats.unitsOut.get());
public void setUp() throws Exception { jnl = new Journal(getProperties()); queryEngine = new QueryEngine(jnl); queryEngine.init(); }
public void testStressThreadSafe() throws Exception { for (int i = 0; i < 100; i++) { try { test_orderBy_threadSafe(); } catch (Throwable t) { fail("Failed after " + i + " trials", t); } } }
/** * Unit test for ORDER BY. */ public void test_orderBy_threadSafe() throws Exception { final long timeout = 10000; // ms final int ntrials = 2000; final int poolSize = 10; doOrderByTest(50000/* maxInt */, timeout, ntrials, poolSize); }