package net.nicoulaj.maven.plugins.checksum.test.unit.digest;


import junit.framework.TestCase;
import net.nicoulaj.maven.plugins.checksum.digest.CksumFileDigester;
import org.junit.Assert;
import org.junit.Test;

import java.io.File;

/**
 * Created by tsumaraa on 03/12/2015.
 */
public class CksumFileDigesterTest  {

    @Test
    public void testEmptyFileCksum() throws Exception {
        File empty_file = File.createTempFile("empty_file", null);

        CksumFileDigester cksumDigester=new CksumFileDigester();
        String cksumEmpty = cksumDigester.calculate(empty_file);

        Assert.assertEquals("4294967295", cksumEmpty);

    }
}
@@ -241,42 +241,81 @@
 %0A * 
-Created by tsumaraa on 03/12/2015.
+Special testcase for cksum %7B@link CksumFileDigester%7D of the empty file%0A *
 %0A */

set test commet