aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2018-01-25 21:33:03 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2018-01-25 21:33:03 +0000
commita307c8f58f02d68629a53c52dbefd50f8e4f97db (patch)
tree496c2a765b658010c12847a0bde44b01671ead19 /src/test
parent84ff381e5cacc94184229b4d1f54c74aee27df21 (diff)
downloadjackcess-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.java8
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());