From 861d8941e734d22e42b029983821053fbac9acfb Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 17 Apr 2014 10:08:39 +1000 Subject: [PATCH] exception is different in 1.7 --- .../reports/consumers/DuplicateArtifactsConsumerTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.39.5