/*
* Copyright (c) 2016 wetransform GmbH
*
* All rights reserved. This program and the accompanying materials are made
* available under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the License,
* or (at your option) any later version.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this distribution. If not, see <http://www.gnu.org/licenses/>.
*
* Contributors:
* wetransform GmbH <http://www.wetransform.to>
*/
package eu.esdihumboldt.hale.io.jdbc.msaccess.reader;
import org.junit.Test;
import eu.esdihumboldt.hale.io.jdbc.msaccess.test.MsAccessDataReader;
import eu.esdihumboldt.hale.io.jdbc.msaccess.test.MsAccessDataReaderTestSuit;
import ru.yandex.qatools.allure.annotations.Features;
import ru.yandex.qatools.allure.annotations.Stories;
/**
* Contains tests for MsAccess Instance Reader
*
* @author Arun
*/
@Features("Databases")
@Stories("MS Access")
public class MsAccessInstanceReaderTest {
/**
* Test for Instance Reader from MS Access database of mdb extension
*
* @throws Exception if an error occurs
*/
@Test
public void testMsAccessSchemaReaderForMdbTest() throws Exception {
MsAccessDataReaderTestSuit testSuite = new MsAccessDataReader();
try {
testSuite.createSourceTempFile();
testSuite.instanceRaderTest();
} finally {
testSuite.deleteSourceTempFile();
}
}
}