mmiklavc commented on a change in pull request #1554: METRON-2307: Migrate to
JUnit5
URL: https://github.com/apache/metron/pull/1554#discussion_r349194570
##########
File path:
metron-platform/metron-solr/metron-solr-common/src/test/java/org/apache/metron/solr/dao/SolrSearchDaoTest.java
##########
@@ -255,11 +210,11 @@ public void getAllLatestShouldProperlyReturnDocuments()
throws Exception {
SolrDocumentList snortList = new SolrDocumentList();
snortList.add(snortSolrDoc1);
snortList.add(snortSolrDoc2);
- when(client.getById((Collection<String>) argThat(hasItems("bro-1",
"bro-2")),
+ when(client.getById((List<String>)
org.mockito.hamcrest.MockitoHamcrest.argThat(hasItems("bro-1", "bro-2")),
Review comment:
Not sure about the `MockitoHamcrest` matchers. Can we just use the static
import we already have? `org.mockito.ArgumentMatchers.argThat`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services