From f39fc917a8b87f4437095ef7d2d26c6344911e07 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Sun, 1 Sep 2019 11:18:11 +0200 Subject: [PATCH] Fixes for JDK11 --- .../src/enunciate/enunciate.xml | 16 +++++++------ .../rest/services/BrowseServiceTest.java | 10 ++++---- .../NewArtifactsRssFeedProcessorTest.java | 2 +- .../src/enunciate/enunciate.xml | 24 ++++++++++++------- 4 files changed, 31 insertions(+), 21 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/enunciate/enunciate.xml b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/enunciate/enunciate.xml index 2afff728e..c0f27aad4 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/enunciate/enunciate.xml +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/enunciate/enunciate.xml @@ -17,12 +17,10 @@ ~ specific language governing permissions and limitations ~ under the License. --> - - - - - + + Apache Archiva REST API @@ -32,12 +30,16 @@ + + + - + + \ No newline at end of file diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/BrowseServiceTest.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/BrowseServiceTest.java index 350d849cb..25686faee 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/BrowseServiceTest.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/BrowseServiceTest.java @@ -376,11 +376,13 @@ public class BrowseServiceTest // START SNIPPET: get-artifacts-by-property BrowseService browseService = getBrowseService( authorizationHeader, true ); - List artifactDownloadInfos = - browseService.getArtifactsByProperty( "org.name", "The Apache Software Foundation", TEST_REPO_ID ); + tryAssert( ( ) -> { + List artifactDownloadInfos = + browseService.getArtifactsByProperty( "org.name", "The Apache Software Foundation", TEST_REPO_ID ); - assertThat( artifactDownloadInfos ).isNotNull().isNotEmpty().hasSize( 7 ); - // END SNIPPET: get-artifacts-by-property + assertThat( artifactDownloadInfos ).isNotNull( ).isNotEmpty( ).hasSize( 7 ); + // END SNIPPET: get-artifacts-by-property + } ); } diff --git a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java index 8b27d5241..40cccc048 100644 --- a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java +++ b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java @@ -132,7 +132,7 @@ public class NewArtifactsRssFeedProcessorTest assertEquals( entries.size(), 1 ); assertTrue( entries.get( 0 ).getTitle().contains( "New Artifacts in Repository 'test-repo' as of " )); - assertTrue( entries.get( 0 ).getPublishedDate().toInstant().equals( whenGathered.toInstant() ) ); + assertTrue( entries.get( 0 ).getPublishedDate().toInstant().truncatedTo( ChronoUnit.MILLIS ).equals( whenGathered.toInstant().truncatedTo( ChronoUnit.MILLIS ) ) ); } private ArtifactMetadata createArtifact( String artifactId, String version, ZonedDateTime whenGathered ) diff --git a/archiva-modules/archiva-web/archiva-web-common/src/enunciate/enunciate.xml b/archiva-modules/archiva-web/archiva-web-common/src/enunciate/enunciate.xml index c1ea80ab0..b94485267 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/enunciate/enunciate.xml +++ b/archiva-modules/archiva-web/archiva-web-common/src/enunciate/enunciate.xml @@ -17,25 +17,31 @@ ~ specific language governing permissions and limitations ~ under the License. --> - - - - - + + Archiva UI Rest API + + + + + - + + - - + + -- 2.39.5