diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2018-01-25 21:33:03 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2018-01-25 21:33:03 +0000 |
commit | a307c8f58f02d68629a53c52dbefd50f8e4f97db (patch) | |
tree | 496c2a765b658010c12847a0bde44b01671ead19 /src/test | |
parent | 84ff381e5cacc94184229b4d1f54c74aee27df21 (diff) | |
download | jackcess-a307c8f58f02d68629a53c52dbefd50f8e4f97db.tar.gz jackcess-a307c8f58f02d68629a53c52dbefd50f8e4f97db.zip |
Expose the ddl attribute on properties. Set the attribute appropriately for known builtin properties. fixes issue #145
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1137 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/com/healthmarketscience/jackcess/PropertiesTest.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/java/com/healthmarketscience/jackcess/PropertiesTest.java b/src/test/java/com/healthmarketscience/jackcess/PropertiesTest.java index 89ab4c4..69eb7c6 100644 --- a/src/test/java/com/healthmarketscience/jackcess/PropertiesTest.java +++ b/src/test/java/com/healthmarketscience/jackcess/PropertiesTest.java @@ -68,13 +68,15 @@ public class PropertiesTest extends TestCase assertSame(colMap, maps.get("TESTCOL")); assertEquals("testcol", colMap.getName()); - defMap.put("foo", DataType.TEXT, (byte)0, "bar"); - defMap.put("baz", DataType.LONG, (byte)1, 13); + defMap.put("foo", DataType.TEXT, "bar", false); + defMap.put("baz", DataType.LONG, 13, true); assertFalse(defMap.isEmpty()); assertEquals(2, defMap.getSize()); + assertFalse(defMap.get("foo").isDdl()); + assertTrue(defMap.get("baz").isDdl()); - colMap.put("buzz", DataType.BOOLEAN, (byte)0, Boolean.TRUE); + colMap.put("buzz", DataType.BOOLEAN, Boolean.TRUE, true); assertFalse(colMap.isEmpty()); assertEquals(1, colMap.getSize()); |