diff options
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/Index.java | 3 | ||||
-rw-r--r-- | test/src/java/com/healthmarketscience/jackcess/ImportTest.java | 15 |
2 files changed, 6 insertions, 12 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/Index.java b/src/java/com/healthmarketscience/jackcess/Index.java index cb8867f..9cc5325 100644 --- a/src/java/com/healthmarketscience/jackcess/Index.java +++ b/src/java/com/healthmarketscience/jackcess/Index.java @@ -698,6 +698,9 @@ public abstract class Index implements Comparable<Index> { rtn.append("\n\tNumber: " + _indexNumber); rtn.append("\n\tPage number: " + _rootPageNumber); rtn.append("\n\tIs Primary Key: " + isPrimaryKey()); + rtn.append("\n\tIs Foreign Key: " + isForeignKey()); + rtn.append("\n\tIs Unique: " + isUnique()); + rtn.append("\n\tIgnore Nulls: " + shouldIgnoreNulls()); rtn.append("\n\tColumns: " + _columns); rtn.append("\n\tInitialized: " + _initialized); if(_initialized) { diff --git a/test/src/java/com/healthmarketscience/jackcess/ImportTest.java b/test/src/java/com/healthmarketscience/jackcess/ImportTest.java index 5d58d7b..a2a4719 100644 --- a/test/src/java/com/healthmarketscience/jackcess/ImportTest.java +++ b/test/src/java/com/healthmarketscience/jackcess/ImportTest.java @@ -38,8 +38,8 @@ import java.util.ArrayList; import java.util.List; import junit.framework.TestCase; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; + +import static com.healthmarketscience.jackcess.DatabaseTest.*; /** * @author Rob Di Marco @@ -47,19 +47,10 @@ import org.apache.commons.logging.LogFactory; public class ImportTest extends TestCase { - /** The logger to use. */ - private static final Log LOG = LogFactory.getLog(ImportTest.class); - public ImportTest(String name) - { + public ImportTest(String name) { super(name); } - private Database create() throws Exception { - File tmp = File.createTempFile("databaseTest", ".mdb"); - tmp.deleteOnExit(); - return Database.create(tmp); - } - public void testImportFromFile() throws Exception { Database db = create(); |