From 130789d1f0a997288c13a6df763a453641545cc9 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Thu, 23 Oct 2008 03:06:34 +0000 Subject: 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 --- .../com/healthmarketscience/jackcess/DatabaseTest.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/src/java/com') 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, -- cgit v1.2.3