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) {
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
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();