@Parameterized.Parameters public static List<Object[]> params() throws IOException { List ret = new ArrayList(); int inc = TT.shortTest() ? 200 : 20; for (int commitNum = 1; commitNum < 1000; commitNum += inc) { for (int cutPointSeed = 0; cutPointSeed < 600; cutPointSeed += inc) { ret.add(new Object[] {commitNum, cutPointSeed}); } } return ret; }
@Test public void commit_huge() { if (TT.shortTest()) return; e = openEngine(); long recid = e.put(new byte[1000 * 1000 * 1000], Serializer.BYTE_ARRAY_NOSIZE); e.commit(); reopen(); byte[] b = e.get(recid, Serializer.BYTE_ARRAY_NOSIZE); assertEquals(1000 * 1000 * 1000, b.length); for (byte bb : b) { assertEquals(0, bb); } e.close(); }