package gov.va.med.esr.common.batchprocess;

import gov.va.med.esr.common.util.AbstractServiceTestCase;
import gov.va.med.fw.scheduling.ScheduledProcess;

/**
 * Initial javadoc for class TestAdd200ESRCorrelationBatchProcess.
 * TODO - Add content here
 * 
 * Created Feb 17, 2006 4:03:07 PM
 * @author George Tsai
 */
public class TestAdd200ESRCorrelationBatchProcess extends AbstractScheduledProcessTest {

	
    private Add200ESRCorrelationBatchProcess batchProcess;
	/**
	 * @return Returns the batchProcess.
	 */
	public Add200ESRCorrelationBatchProcess getBatchProcess() {
		return batchProcess;
	}

	/**
	 * @param batchProcess The batchProcess to set.
	 */
	public void setBatchProcess(Add200ESRCorrelationBatchProcess batchProcess) {
		this.batchProcess = batchProcess;
	}

	/* (non-Javadoc)
	 * @see gov.va.med.esr.common.batchprocess.AbstractScheduledProcessTest#getScheduledProcess()
	 */
	protected ScheduledProcess getScheduledProcess() {
		return getBatchProcess();
	}    

    public void testAdd200ESRCorrelationBatchProcess() throws Exception{

        //login anonymous
        this.getLoginManager().loginAnonymous();

    
        try {
            ScheduledProcess process = (ScheduledProcess)applicationContext.getBean("common.batchprocess.add200ESRCorrelationBatchProcess");
            process.invoke(null);
                    }
        catch( Exception e ) {
            e.printStackTrace();
            fail( "Failed to insert a log entry due to exception", e );
        }
    }
}