

package gov.va.med.cds.util;


import static org.junit.Assert.assertEquals;
import gov.va.med.cds.checksum.util.IcnChecksum;
import gov.va.med.cds.junit.runners.SuiteAwareRunner;
import gov.va.med.cds.junit.runners.Suite;

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

@RunWith(SuiteAwareRunner.class)
public class IcnCheckSumTest
{

    @Test
    @Suite( groups = "checkintest" )
    public void testAddChecksumToIcn( )
    {
        String icn = "1008183996";
        String icnChecksum = IcnChecksum.addChecksumToIcn( icn );

        assertEquals( "1008183996V307284", icnChecksum );
    }

}
