slawekjaranowski commented on code in PR #364:
URL: https://github.com/apache/maven-indexer/pull/364#discussion_r1603806948


##########
search-backend-remoterepository/src/test/java/org/apache/maven/search/backend/remoterepository/internal/RemoteRepositorySearchBackendImplTest.java:
##########
@@ -172,6 +173,21 @@ public void gav() throws IOException {
         dumpPage(searchResponse);
     }
 
+    @Test
+    public void gave() throws IOException {
+        // LIST GAVCEs
+        SearchRequest searchRequest = new SearchRequest(BooleanQuery.and(
+                FieldQuery.fieldQuery(MAVEN.GROUP_ID, 
"org.apache.maven.plugins"),
+                FieldQuery.fieldQuery(MAVEN.ARTIFACT_ID, "maven-clean-plugin"),
+                FieldQuery.fieldQuery(MAVEN.VERSION, "3.1.0"),
+                FieldQuery.fieldQuery(MAVEN.FILE_EXTENSION, "jar")));
+        RemoteRepositorySearchResponse searchResponse = 
backend.search(searchRequest);
+        assertThat(searchResponse.getTotalHits(), equalTo(1));
+        assertNotNull(searchResponse.getPage().get(0).getLastUpdated());

Review Comment:
   I would to like a use one framework ...
   so hamcrest or Assertions from JUnit in all place in one test class



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to