/**
 * 
 */


package gov.va.med.cds.aspects.exception;


import junit.framework.Assert;
import gov.va.med.cds.junit.runners.SuiteAwareSpringRunner;
import gov.va.med.cds.junit.runners.Suite;
import gov.va.med.cds.socket.server.handler.AccessValidatorInterface;
import gov.va.med.cds.testharness.AbstractBaseTest;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;


/**
 * @author susarlan
 * 
 */
@RunWith( SuiteAwareSpringRunner.class )
@ContextConfiguration( locations = { "file:src/test/resources/config/exception/test-log-and-swallow-context.xml",
                "file:src/test/resources/mllpAccessValidatorSpringContext.xml" } )
public class AdapterLogAndSwallowAspectTest
    extends
        AbstractBaseTest
{
    private AccessValidatorInterface mllpAccessValidator;

    String icReadResponseWithErrorSection = null;


    /***
     * Logs and swallows the exception thrown
     * 
     * @throws Exception
     */
    @Test
    @Suite(groups = "checkintest")
    public void testLogAndSwallow( )
        throws Exception
    {
        //mllpAccessValidator.validateAccess( null );
    	Assert.assertTrue(true); // Verify that this test is obsolete when using HL7Support    
    }


    @javax.annotation.Resource
    public void setMllpAccessValidator( AccessValidatorInterface mllpAccessValidator )
    {
        this.mllpAccessValidator = mllpAccessValidator;
    }

}
