Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ISSUE #4420] Add Feishu Sink connector #4522
[ISSUE #4420] Add Feishu Sink connector #4522
Changes from 1 commit
fae2324
aff39ba
1f25a26
edc38d5
d85deec
dc1af2f
3123e6b
4562695
45bb953
24abe12
0cf93d9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you modify the code using Mockito stubbing or other mocking techniques to remove the annotation and make the test class runnable?
能否使用Mockito的打桩或者其他模拟的方式修改下代码,使该测试类可以移除掉该注解,并能实际运行?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that you are using Mockito for mocking, you can change the verification method of
assertDoesNotThrow()
to verify the number of calls to thefeishuClient
that you are mocking. Otherwise, the introduction of Mockito is meaningless.现在您已经使用Mockito进行模拟了,就可以将
assertDoesNotThrow()
的验证方式改成验证您所模拟的feishuClient
的调用次数。否则引入的Mockito就没有意义了。There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One startup is enough. Additionally, it would be better to call
stop ()
at the end of the test, although it is currently an empty method.启动一次就够了。另外,测试结束时最好调用下
stop()
,虽然目前是个空方法。