From: Olivier Lamy Date: Thu, 17 Apr 2014 00:08:39 +0000 (+1000) Subject: exception is different in 1.7 X-Git-Tag: archiva-2.1.0~83 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=861d8941e734d22e42b029983821053fbac9acfb;p=archiva.git exception is different in 1.7 --- diff --git a/archiva-modules/plugins/problem-reports/src/test/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumerTest.java b/archiva-modules/plugins/problem-reports/src/test/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumerTest.java index 66819225a..750b112f6 100644 --- a/archiva-modules/plugins/problem-reports/src/test/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumerTest.java +++ b/archiva-modules/plugins/problem-reports/src/test/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumerTest.java @@ -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 {