diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2008-10-23 03:06:34 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2008-10-23 03:06:34 +0000 |
commit | 130789d1f0a997288c13a6df763a453641545cc9 (patch) | |
tree | 82ded4c613d78316b04c79d0d110e4ba49807477 /test/src/java/com | |
parent | 30b338ad938fcbce23cf951a00326d9cfa9d2b9d (diff) | |
download | jackcess-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.java | 15 |
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, |