summaryrefslogtreecommitdiffstats
path: root/test/src/java/com
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2008-10-23 03:06:34 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2008-10-23 03:06:34 +0000
commit130789d1f0a997288c13a6df763a453641545cc9 (patch)
tree82ded4c613d78316b04c79d0d110e4ba49807477 /test/src/java/com
parent30b338ad938fcbce23cf951a00326d9cfa9d2b9d (diff)
downloadjackcess-130789d1f0a997288c13a6df763a453641545cc9.tar.gz
jackcess-130789d1f0a997288c13a6df763a453641545cc9.zip
Add Database.getSystemTable method for accessing system tables
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@380 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'test/src/java/com')
-rw-r--r--test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java b/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java
index 19078ee..136780e 100644
--- a/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java
+++ b/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java
@@ -896,6 +896,21 @@ public class DatabaseTest extends TestCase {
}
}
}
+
+ public void testSystemTable() throws Exception
+ {
+ Database db = create();
+
+ assertNotNull(db.getSystemTable("MSysAccessObjects"));
+ assertNotNull(db.getSystemTable("MSysObjects"));
+ assertNotNull(db.getSystemTable("MSysQueries"));
+ assertNotNull(db.getSystemTable("MSysACES"));
+ assertNotNull(db.getSystemTable("MSysRelationships"));
+
+ assertNull(db.getSystemTable("MSysBogus"));
+
+ db.close();
+ }
static Object[] createTestRow(String col1Val) {
return new Object[] {col1Val, "R", "McCune", 1234, (byte) 0xad, 555.66d,