]> source.dussan.org Git - archiva.git/commitdiff
clear warning before some test to be sure of what we test
authorskygo <skygo@unknown>
Sat, 4 Aug 2012 12:31:45 +0000 (12:31 +0000)
committerskygo <skygo@unknown>
Sat, 4 Aug 2012 12:31:45 +0000 (12:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1369304 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-artifact-converter/src/test/java/org/apache/archiva/converter/artifact/LegacyToDefaultConverterTest.java

index 581e22a43fa42b1fc940be87da87e153fa95a9af..386283012067d881c260b4162aabd20ebd6884f2 100644 (file)
@@ -699,6 +699,8 @@ public class LegacyToDefaultConverterTest
         File targetFile = new File( targetRepository.getBasedir(), targetRepository.pathOf( artifact ) );
         File targetPomFile = new File( targetRepository.getBasedir(), targetRepository.pathOf( pomArtifact ) );
 
+        // clear warning before test related to MRM-1638
+        artifactConverter.clearWarnings(); 
         artifactConverter.convert( artifact, targetRepository );
         checkSuccess( artifactConverter );
 
@@ -743,6 +745,8 @@ public class LegacyToDefaultConverterTest
         // Need to guarantee last modified is not equal
         Thread.sleep( SLEEP_MILLIS );
 
+        // clear warning before test related to MRM-1638
+        artifactConverter.clearWarnings(); 
         artifactConverter.convert( artifact, targetRepository );
         checkWarnings( artifactConverter, 2 );