aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2014-04-17 10:08:39 +1000
committerOlivier Lamy <olamy@apache.org>2014-04-17 10:08:39 +1000
commit861d8941e734d22e42b029983821053fbac9acfb (patch)
treeb07a1bcd63a04c582d62b0ab5174a74c0d50d28b
parentbb3014071965a7a620284886aa3ccf96b7aa6d0e (diff)
downloadarchiva-861d8941e734d22e42b029983821053fbac9acfb.tar.gz
archiva-861d8941e734d22e42b029983821053fbac9acfb.zip
exception is different in 1.7
-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
{