/*******************************************************************************
 * This file is part of GECAMed.
 * 
 * GECAMed is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License (L-GPL) as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * GECAMed is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License (L-GPL)
 * along with GECAMed.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * GECAMed is Copyrighted by the Centre de Recherche Public Henri Tudor (http://www.tudor.lu)
 * (c) CRP Henri Tudor, Luxembourg, 2008
 *******************************************************************************/
/**
 * 
 */
package lu.tudor.santec.gecamed.prescription.testcases;

import junit.framework.TestCase;

/**
 * @author martin.heinemann@tudor.lu
 *
 *
 * @version
 * <br>$Log: JDBFTest.java,v $
 * <br>Revision 1.4  2013-12-27 18:09:25  donak
 * <br>Cleanup of imports
 * <br>
 * <br>Revision 1.3  2008-09-25 09:43:07  heinemann
 * <br>fixed copyrights
 * <br>
 * <br>Revision 1.2  2007/03/02 08:28:39  hermen
 * <br>initial checkin after the merge of PatientModuleRebuild with the main HEAD
 * <br>
 * <br>Revision 1.1.2.1  2007/01/04 13:51:57  heinemann
 * <br>The great space cleaning lady has done a big bunch of refactoring
 * <br>
 */
public class JDBFTest extends TestCase {

	/**
	 * @param name
	 */
	public JDBFTest(String name) {
		super(name);
	}
	
	
	
	public void testDBFConnection() {
		/* ====================================================== */
		
		
//		ImportATCClasses im = new ImportATCClasses();
//		try {
//			im.setTextFile("/home/heine/gecamed/CEFIP/list/ATC.DBF");
//			
//			im.doImport();
//			
//		} catch (Exception e) {
//			
//			e.printStackTrace();
//		}
		
		
		
//		try {
//			
//			FileInputStream inF = new FileInputStream("/home/heine/gecamed/CEFIP/list/ATC.DBF");
//			DBFReader reader = new DBFReader(new BufferedInputStream(inF));
//			
//			System.out.println("Count: " + reader.getFieldCount());
//			
////			reader.nextRecord();
//			System.out.println(reader.getField(1));
//			int count = 1;
////			while (reader.hasNextRecord()) {
////				System.out.println(count++ +". " + reader.getField(2) +": " + reader.nextRecord()[2]);
////				
////			}
//			
////			System.out.println("Field: " + reader.nextRecord()[2].getClass());
////			System.out.println("Field: " + reader.nextRecord()[2]);
////			System.out.println("Field: " + reader.nextRecord()[2]);
////			System.out.println("Field: " + reader.nextRecord()[2]);
////			System.out.println("Field: " + reader.nextRecord()[2]);
////			
////			System.out.println("Field: " + reader.nextRecord()[2]);
////			System.out.println("Field: " + reader.nextRecord()[2]);
////			System.out.println("Field: " + reader.nextRecord()[2]);
////			
////			System.out.println("Blah: " + reader.getField(2).getName());
////			
//			
//			
//			inF.close();
//			
//		} catch (JDBFException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		} catch (FileNotFoundException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		} catch (IOException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
//		
		
		/* ====================================================== */
	}

}
