You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/08/04 14:25:52 UTC

[GitHub] [shardingsphere] kimmking opened a new pull request #6621: fixTest

kimmking opened a new pull request #6621:
URL: https://github.com/apache/shardingsphere/pull/6621


   fixTest
   


----------------------------------------------------------------
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] [shardingsphere] kimmking commented on pull request #6621: fixTest

Posted by GitBox <gi...@apache.org>.
kimmking commented on pull request #6621:
URL: https://github.com/apache/shardingsphere/pull/6621#issuecomment-669104524


   org.mockito.Mockito.RETURNS_DEEP_STUBS is to avoid the temp object mock for a chain methods call.
   Such as we need mock `a.b().c().d()`.
   
   The old way is:
   ```
   mock d as D,
   mock c as C,
   mock c.d() return d;
   mock b as B,
   mock b.c() return c;
   mock a as A,
   mock a.b() return b;
   ```
   
   If we mock with 'RETURNS_DEEP_STUBS':
   ```
   mock d as D,
   mock a as A with RETURNS_DEEP_STUBS,
   mock a.b().c().d() return d;
   ```
   
   


----------------------------------------------------------------
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] [shardingsphere] terrymanu merged pull request #6621: fix DatabaseCommunicationEngineFactoryTest

Posted by GitBox <gi...@apache.org>.
terrymanu merged pull request #6621:
URL: https://github.com/apache/shardingsphere/pull/6621


   


----------------------------------------------------------------
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] [shardingsphere] kimmking closed pull request #6621: fixTest

Posted by GitBox <gi...@apache.org>.
kimmking closed pull request #6621:
URL: https://github.com/apache/shardingsphere/pull/6621


   


----------------------------------------------------------------
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