diff options
author | Martin Stockhammer <martin_s@apache.org> | 2019-08-02 23:49:08 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2019-08-02 23:49:08 +0200 |
commit | c56ce11c20b1963760b74e397acb200f61c1f95e (patch) | |
tree | dd805d2d7a6b8e0c6ec65578106eec67d07b50ad /archiva-modules/archiva-web/archiva-webdav/src | |
parent | bb3b074aaf5a2be0d81c950ecf1588fe8efa3316 (diff) | |
download | archiva-c56ce11c20b1963760b74e397acb200f61c1f95e.tar.gz archiva-c56ce11c20b1963760b74e397acb200f61c1f95e.zip |
Fixing unit tests
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webdav/src')
2 files changed, 2 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java index 71868d10c..4a0a548c9 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java @@ -344,7 +344,7 @@ public class ArchivaDavResourceFactory ArchivaRepositoryMetadata repoMetadata = MavenMetadataReader.read( metadataFile ); mergedMetadata = RepositoryMetadataMerge.merge( mergedMetadata, repoMetadata ); } - catch (XMLException | IOException e ) + catch (XMLException e ) { throw new DavException( HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "Error occurred while reading metadata file." ); diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletBrowseTest.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletBrowseTest.java index 29e51f833..a453021a4 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletBrowseTest.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletBrowseTest.java @@ -67,7 +67,7 @@ public class RepositoryServletBrowseTest // dumpResponse( response ); - List<String> expectedLinks = Arrays.asList( ".index/", ".indexer/", "commons-lang/", "net/", "org/" ); + List<String> expectedLinks = Arrays.asList( ".indexer/", "commons-lang/", "net/", "org/" ); Document document = Jsoup.parse( response.getContentAsString() ); Elements elements = document.getElementsByTag( "a" ); |