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/04/25 17:44:40 UTC
[GitHub] [shardingsphere] TaoZhiMLND commented on pull request #5312: move logic of isTableExist to TableMetaDataLoader#load.
TaoZhiMLND commented on pull request #5312:
URL: https://github.com/apache/shardingsphere/pull/5312#issuecomment-619415889
Because of the following Exception, I removed two mockito stubbings.
```
Process finished with exit code -1
org.mockito.exceptions.misusing.UnnecessaryStubbingException:
Unnecessary stubbings detected in test class: ColumnMetaDataLoaderTest
Clean & maintainable test code requires zero unnecessary code.
Following stubbings are unnecessary (click to navigate to relevant line of code):
1. -> at org.apache.shardingsphere.sql.parser.binder.metadata.column.ColumnMetaDataLoaderTest.setUp(ColumnMetaDataLoaderTest.java:76)
2. -> at org.apache.shardingsphere.sql.parser.binder.metadata.column.ColumnMetaDataLoaderTest.setUp(ColumnMetaDataLoaderTest.java:77)
Please remove unnecessary stubbings or use 'silent' option. More info: javadoc for UnnecessaryStubbingException class.
at org.mockito.internal.runners.StrictRunner.run(StrictRunner.java:49)
at org.mockito.junit.MockitoJUnitRunner.run(MockitoJUnitRunner.java:161)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:230)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)
```
----------------------------------------------------------------
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