/********************************************************************
 * Copyright © 2005 VHA. All rights reserved
 ********************************************************************/


package gov.va.med.fw.batchprocess;

import gov.va.med.fw.util.AbstractContextAwareTestCase;

/**
 * Initial javadoc for class TestBatchProcesses.
 * TODO - Add content here
 * 
 * Created Feb 16, 2006 5:59:05 PM
 * @author DNS   BOHMEG
 */
public class TestBatchProcesses extends AbstractContextAwareTestCase {	
	
	public void testDataFileProcess() throws Exception {
		System.out.println("#### DataFileProcess");
		getDataFileProcess().invoke();
	}

	public void testDataFileIncrementalProcess() throws Exception {
		System.out.println("#### DataFileIncrementalProcess");
		getDataFileIncrementalProcess().invoke();
	}

	public void testDataFileSingleRowIncrementProcess() throws Exception {
		System.out.println("#### DataFileSingleRowIncrementProcess");
		getDataFileSingleRowIncrementProcess().invoke();
	}

	public void testConcurrentProcess() throws Exception {
		System.out.println("#### ConcurrentProcess");
		getConcurrentProcess().invoke();
		Thread.sleep(10000);
	}
	
	
	public MockDataFileIncrementalProcess getDataFileIncrementalProcess() {
		return (MockDataFileIncrementalProcess) applicationContext.getBean(MockDataFileIncrementalProcess.class.getName());
	}
	public MockDataFileProcess getDataFileProcess() {
		return (MockDataFileProcess) applicationContext.getBean(MockDataFileProcess.class.getName());
	}
	public MockDataFileSingleRowIncrementProcess getDataFileSingleRowIncrementProcess() {
		return (MockDataFileSingleRowIncrementProcess) applicationContext.getBean(MockDataFileSingleRowIncrementProcess.class.getName());
	}
	public MockConcurrentProcess getConcurrentProcess() {
		return (MockConcurrentProcess) applicationContext.getBean(MockConcurrentProcess.class.getName());
	}		
}
