]> source.dussan.org Git - jackcess.git/commitdiff
minor tweaks
authorJames Ahlborn <jtahlborn@yahoo.com>
Thu, 10 Apr 2008 01:06:28 +0000 (01:06 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Thu, 10 Apr 2008 01:06:28 +0000 (01:06 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@319 f203690c-595d-4dc9-a70b-905162fa7fd2

src/java/com/healthmarketscience/jackcess/Index.java
test/src/java/com/healthmarketscience/jackcess/ImportTest.java

index cb8867f8a7da1b472b14a13de7f9ab3704dc59bb..9cc5325bad0be6771ea9f16c165a801fb1553c0c 100644 (file)
@@ -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) {
index 5d58d7b431cd6503e730b93c97866db0e6130ca1..a2a4719557b9929455f6ae6a4d0dc3a3b8ecd957 100644 (file)
@@ -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();