summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--archiva-modules/plugins/problem-reports/src/test/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumerTest.java3
1 files changed, 2 insertions, 1 deletions
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
{