You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by GitBox <gi...@apache.org> on 2021/06/02 14:04:04 UTC

[GitHub] [drill] martin-g opened a new pull request #2246: DRILL-7943 Update Hamcrest to 2.2

martin-g opened a new pull request #2246:
URL: https://github.com/apache/drill/pull/2246


   # [DRILL-7943](https://issues.apache.org/jira/browse/DRILL-7943): Update Hamcrest to 2.2
   
   ## Description
   
   Update Hamcrest testing library from 1.3 to 2.2.
   
   Update all usages of org.junit.Assert.assertThat() to org.hamcrest.MatcherAssert.assertThat()
   
   ## Documentation
   
   No documentation updates are needed.
   
   ## Testing
   
   The unit tests suite is executed
   


-- 
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:
users@infra.apache.org



[GitHub] [drill] cgivre merged pull request #2246: DRILL-7943 Update Hamcrest to 2.2

Posted by GitBox <gi...@apache.org>.
cgivre merged pull request #2246:
URL: https://github.com/apache/drill/pull/2246


   


-- 
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:
users@infra.apache.org



[GitHub] [drill] martin-g commented on pull request #2246: DRILL-7943 Update Hamcrest to 2.2

Posted by GitBox <gi...@apache.org>.
martin-g commented on pull request #2246:
URL: https://github.com/apache/drill/pull/2246#issuecomment-853636660


   >  Just curious but is there a reason why we don't just use `junit` and remove this dependency altogether?
   
   JUnit provides just `Assert.assertThat(String reason, T actual, Matcher<? super T> matcher)`, Hamcrest provides the actual matcher implementations. 
   
   JUnit's `assertThat()` is linked to Hamcrest 1.3 Matcher. This is the reason to replace it with `org.hamcrest.MatcherAssert.assertThat()` in this PR


-- 
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:
users@infra.apache.org



[GitHub] [drill] cgivre commented on pull request #2246: DRILL-7943 Update Hamcrest to 2.2

Posted by GitBox <gi...@apache.org>.
cgivre commented on pull request #2246:
URL: https://github.com/apache/drill/pull/2246#issuecomment-853146584


   @martin-g Thanks for this PR.  Just curious but is there a reason why we don't just use `junit` and remove this dependency altogether?


-- 
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:
users@infra.apache.org



[GitHub] [drill] martin-g commented on pull request #2246: DRILL-7943 Update Hamcrest to 2.2

Posted by GitBox <gi...@apache.org>.
martin-g commented on pull request #2246:
URL: https://github.com/apache/drill/pull/2246#issuecomment-853636660


   >  Just curious but is there a reason why we don't just use `junit` and remove this dependency altogether?
   
   JUnit provides just `Assert.assertThat(String reason, T actual, Matcher<? super T> matcher)`, Hamcrest provides the actual matcher implementations. 
   
   JUnit's `assertThat()` is linked to Hamcrest 1.3 Matcher. This is the reason to replace it with `org.hamcrest.MatcherAssert.assertThat()` in this PR


-- 
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:
users@infra.apache.org