

package gov.va.med.cds.exception;


import gov.va.med.cds.junit.runners.SuiteAwareRunner;
import gov.va.med.cds.junit.runners.Suite;

import java.io.IOException;

import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(SuiteAwareRunner.class)
public class MllpIllegalEncodingExceptionTest
{

    @Test( expected = MllpIllegalEncodingException.class )
    @Suite( groups = "checkintest" )
    public void testMllpIllegalEncodingException( )
    {
        throw new MllpIllegalEncodingException( ErrorCodeEnum.MLLP_ILLEGAL_ENCODING_EXCEPTION, new IOException() );
    }


    @Test( expected = MllpIllegalEncodingException.class )
    @Suite( groups = "checkintest" )
    public void testMllpIllegalEncodingExceptionWithErrorMessage( )
    {
        throw new MllpIllegalEncodingException( ErrorCodeEnum.MLLP_ILLEGAL_ENCODING_EXCEPTION, new IOException(), "Error Message" );
    }

}
