]> source.dussan.org Git - archiva.git/commitdiff
exception is different in 1.7
authorOlivier Lamy <olamy@apache.org>
Thu, 17 Apr 2014 00:08:39 +0000 (10:08 +1000)
committerOlivier Lamy <olamy@apache.org>
Thu, 17 Apr 2014 00:08:39 +0000 (10:08 +1000)
archiva-modules/plugins/problem-reports/src/test/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumerTest.java

index 66819225a2413fcfcd2e6d68fc966bda45cad973..750b112f6fca241a19de727b18ce5fac31abbcb7 100644 (file)
@@ -41,6 +41,7 @@ import javax.inject.Inject;
 import javax.inject.Named;
 import java.io.File;
 import java.io.FileNotFoundException;
+import java.nio.file.NoSuchFileException;
 import java.util.Arrays;
 import java.util.Date;
 import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner;
@@ -185,7 +186,7 @@ public class DuplicateArtifactsConsumerTest
         }
         catch ( ConsumerException e )
         {
-            assertTrue( e.getCause() instanceof FileNotFoundException );
+            assertTrue( e.getCause() instanceof NoSuchFileException );
         }
         finally
         {