import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import junit.framework.TestCase;
+import org.apache.archiva.test.utils.ArchivaBlockJUnit4ClassRunner;
import org.junit.Test;
+import org.junit.runner.RunWith;
/**
* ChecksumTest
*
* @version $Id$
*/
+@RunWith( ArchivaBlockJUnit4ClassRunner.class )
public class ChecksumTest
- extends AbstractChecksumTestCase
+ extends TestCase
{
private static final String UNSET_SHA1 = "da39a3ee5e6b4b0d3255bfef95601890afd80709";
import java.io.File;
import java.io.IOException;
+import java.util.logging.Level;
+import java.util.logging.Logger;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
+import org.junit.Before;
import org.junit.Test;
/**
private static final String REMOTE_METADATA_MD5 = "d41d8cd98f00b204e9800998ecf8427e";
+
+ @Before
+ public void cleanTestDir()
+ {
+ try
+ {
+ FileUtils.deleteDirectory(getTestOutputDir());
+ } catch (IOException ex) {
+ Logger.getLogger(ChecksummedFileTest.class.getName()).log(Level.SEVERE, null, ex);
+ }
+ }
+
private File createTestableJar( String filename )
throws IOException
{