[Optimization-1646][metadata] Optimize units test add assertion
Purpose of the pull request
Optimize units test add assertion #1646
Brief change log
- dinky-metadata units test add assertion
Verify this pull request
This change added tests and can be verified as follows:
- Added dinky-metadata tests assertion.
How do you think it is more appropriate to assert?
How do you think it is more appropriate to assert?
Now it seems that the submitted test class with assertion should not be necessary to add assertion, because the test class of dinky-metadata is to test the validity of the connected code of various external data sources. the test class of dinky-core is to test the validity of the FlinkRest code. It is only convenient for developers in the development phase and not helpful when compiling and packaging. The addition of Assertion in the case of logging only enriches the means of checking the test results, and does not have a very obvious optimization to improve code performance.
I don't think it is very necessary to add assert to these test classes. Maybe I didn't consider a more suitable assert method, can you give some suggestions?
Sorry. At present, I can't think of how to do it. Maybe you can refer to other open source projects. thx
the connection to other services is guaranteed according to the library unit tests, we only need to make sure invoke behavior is all right, so could mock the connection function result.
the connection to other services is guaranteed according to the library unit tests, we only need to make sure invoke behavior is all right, so could mock the connection function result.
Can you give an example?
the connection to other services is guaranteed according to the library unit tests, we only need to make sure invoke behavior is all right, so could mock the connection function result.
Can you give an example?
#1701
- [X] #1701