import org.apache.archiva.checksum.ChecksumAlgorithm;
import org.apache.archiva.checksum.ChecksummedFile;
+import org.apache.commons.io.FileUtils;
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
/*
File sha1File = new File( repoConfig.getLocation(), path + ".sha1" );
File md5File = new File( repoConfig.getLocation(), path + ".md5" );
+ sha1File.delete();
+ md5File.delete();
+
assertFalse( sha1File.exists() );
assertFalse( md5File.exists() );
public void testExistingIncorrectChecksums()
throws Exception
{
+ File newLocation = getTestFile( "target/test-repo" );
+ FileUtils.deleteDirectory( newLocation );
+ FileUtils.copyDirectory( new File( repoConfig.getLocation() ), newLocation );
+ repoConfig.setLocation( newLocation.getAbsolutePath() );
+
String path = "/incorrect-checksums/1.0/incorrect-checksums-1.0.jar";
File sha1File = new File( repoConfig.getLocation(), path + ".sha1" );