git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@937 f203690c-595d-4dc9-a70b-905162fa7fd2tags/jackcess-2.1.1
@@ -122,7 +122,7 @@ | |||
<configuration> | |||
<forkMode>once</forkMode> | |||
<parallel>classes</parallel> | |||
<threadCount>1</threadCount> | |||
<threadCount>2</threadCount> | |||
<argLine>-Xmx256M</argLine> | |||
<systemProperties> | |||
<property> |
@@ -85,7 +85,7 @@ public class CursorTest extends TestCase { | |||
private static Database createTestTable(final FileFormat fileFormat) | |||
throws Exception | |||
{ | |||
Database db = create(fileFormat); | |||
Database db = createMem(fileFormat); | |||
Table table = new TableBuilder("test") | |||
.addColumn(new ColumnBuilder("id", DataType.LONG)) | |||
@@ -143,7 +143,7 @@ public class CursorTest extends TestCase { | |||
private static Database createDupeTestTable(final FileFormat fileFormat) | |||
throws Exception | |||
{ | |||
Database db = create(fileFormat); | |||
Database db = createMem(fileFormat); | |||
Table table = new TableBuilder("test") | |||
.addColumn(new ColumnBuilder("id", DataType.LONG)) | |||
@@ -1069,7 +1069,7 @@ public class CursorTest extends TestCase { | |||
{ | |||
for (final TestDB testDB : TestDB.getSupportedForBasename(Basename.INDEX)) { | |||
Database db = open(testDB); | |||
Database db = openMem(testDB); | |||
Table t1 = db.getTable("Table1"); | |||
Index idx = t1.getIndex(IndexBuilder.PRIMARY_KEY_NAME); | |||
IndexCursor cursor = CursorBuilder.createCursor(idx); | |||
@@ -1278,7 +1278,7 @@ public class CursorTest extends TestCase { | |||
public void testIterationEarlyExit() throws Exception { | |||
for (final FileFormat fileFormat : JetFormatTest.SUPPORTED_FILEFORMATS) { | |||
Database db = create(fileFormat); | |||
Database db = createMem(fileFormat); | |||
Table table = new TableBuilder("test") | |||
.addColumn(new ColumnBuilder("id", DataType.LONG)) |
@@ -390,7 +390,7 @@ public class DatabaseTest extends TestCase | |||
public void testWriteAndReadInBatch() throws Exception { | |||
for (final FileFormat fileFormat : SUPPORTED_FILEFORMATS) { | |||
Database db = create(fileFormat); | |||
Database db = createMem(fileFormat); | |||
createTestTable(db); | |||
int count = 1000; | |||
List<Object[]> rows = new ArrayList<Object[]>(count); | |||
@@ -1203,7 +1203,7 @@ public class DatabaseTest extends TestCase | |||
public void testUpdateRow() throws Exception | |||
{ | |||
for (final FileFormat fileFormat : SUPPORTED_FILEFORMATS) { | |||
Database db = create(fileFormat); | |||
Database db = createMem(fileFormat); | |||
Table t = new TableBuilder("test") | |||
.addColumn(new ColumnBuilder("name", DataType.TEXT)) | |||
@@ -1528,7 +1528,7 @@ public class DatabaseTest extends TestCase | |||
public void testUnicodeCompression() throws Exception | |||
{ | |||
File dbFile = new File("src/test/data/V2003/testUnicodeCompV2003.mdb"); | |||
Database db = open(Database.FileFormat.V2003, new File("src/test/data/V2003/testUnicodeCompV2003.mdb")); | |||
Database db = open(Database.FileFormat.V2003, new File("src/test/data/V2003/testUnicodeCompV2003.mdb"), true); | |||
StringBuilder sb = new StringBuilder(127); | |||
for(int i = 1; i <= 0xFF; ++i) { |