diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2014-09-07 00:43:04 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2014-09-07 00:43:04 +0000 |
commit | 40842f747e387e5584744845f7ee37eb689105ec (patch) | |
tree | 7541ba69db4277cf416d03ea95f4ae50e14e0e6b /src/test/java/com/healthmarketscience/jackcess/util | |
parent | 5ab3c60555a706a990ff2e48f48d78b449ed3c47 (diff) | |
download | jackcess-40842f747e387e5584744845f7ee37eb689105ec.tar.gz jackcess-40842f747e387e5584744845f7ee37eb689105ec.zip |
initial support for reading and writing calculated columns (issue #105)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@868 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/test/java/com/healthmarketscience/jackcess/util')
-rw-r--r-- | src/test/java/com/healthmarketscience/jackcess/util/ErrorHandlerTest.java | 7 | ||||
-rw-r--r-- | src/test/java/com/healthmarketscience/jackcess/util/RowFilterTest.java | 3 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/test/java/com/healthmarketscience/jackcess/util/ErrorHandlerTest.java b/src/test/java/com/healthmarketscience/jackcess/util/ErrorHandlerTest.java index 6431ad8..00ff159 100644 --- a/src/test/java/com/healthmarketscience/jackcess/util/ErrorHandlerTest.java +++ b/src/test/java/com/healthmarketscience/jackcess/util/ErrorHandlerTest.java @@ -160,8 +160,7 @@ public class ErrorHandlerTest extends TestCase List<Column> cols = (List<Column>)colsField.get(t); Column srcCol = null; - ColumnImpl destCol = new BogusColumn(t); - destCol.setName(colName); + ColumnImpl destCol = new BogusColumn(t, colName); for(int i = 0; i < cols.size(); ++i) { srcCol = cols.get(i); if(srcCol.getName().equals(colName)) { @@ -182,8 +181,8 @@ public class ErrorHandlerTest extends TestCase private static class BogusColumn extends ColumnImpl { - private BogusColumn(Table table) { - super((TableImpl)table, DataType.LONG, 1, 0, 0); + private BogusColumn(Table table, String name) { + super((TableImpl)table, name, DataType.LONG, 1, 0, 0); } @Override diff --git a/src/test/java/com/healthmarketscience/jackcess/util/RowFilterTest.java b/src/test/java/com/healthmarketscience/jackcess/util/RowFilterTest.java index 7808a08..e6d79db 100644 --- a/src/test/java/com/healthmarketscience/jackcess/util/RowFilterTest.java +++ b/src/test/java/com/healthmarketscience/jackcess/util/RowFilterTest.java @@ -65,8 +65,7 @@ public class RowFilterTest extends TestCase List<Row> rows = Arrays.asList(row0, row1, row2, row3, row4, row5); - ColumnImpl testCol = new ColumnImpl(null, DataType.TEXT, 0, 0, 0) {}; - testCol.setName(COL1); + ColumnImpl testCol = new ColumnImpl(null, COL1, DataType.TEXT, 0, 0, 0) {}; assertEquals(Arrays.asList(row0, row2, row4), toList(RowFilter.matchPattern(testCol, "foo").apply(rows))); |