Skip to content
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

Add unit tests for module nacos-common in nacos 2.0 #5095

Closed
realJackSun opened this issue Mar 12, 2021 · 3 comments
Closed

Add unit tests for module nacos-common in nacos 2.0 #5095

realJackSun opened this issue Mar 12, 2021 · 3 comments
Labels
area/Test expired No active for a long time

Comments

@realJackSun
Copy link
Collaborator

realJackSun commented Mar 12, 2021

This is a sub-issue of [ISSUE #4981]
The nacos-common in nacos 2.0 module coverage rate is too low, this ISSUE aims to adding more unit tests to nacos-common module.

@realJackSun realJackSun changed the title Add unit tests for module nacos-common Add unit tests for module nacos-common in nacos 2.0 Mar 12, 2021
@SunJiFengPlus
Copy link
Contributor

Please assign it to me, I will solve it.

KomachiSion pushed a commit that referenced this issue Jun 30, 2021
* replace with try with resource

* replace with lambda

* add unit test

* inline variable
ZZQ001010 pushed a commit to ZZQ001010/nacos that referenced this issue Jun 30, 2021
* replace with try with resource

* replace with lambda

* add unit test

* inline variable
@SunJiFengPlus
Copy link
Contributor

At present, the test coverage of common module

KomachiSion pushed a commit that referenced this issue Jul 1, 2021
* add unit test to InternetAddressUtil

* inline variable

* simplify assert
SunJiFengPlus pushed a commit to SunJiFengPlus/nacos that referenced this issue Jul 2, 2021
KomachiSion pushed a commit that referenced this issue Jul 8, 2021
* 100% cover ConvertUtils

* delete dead code

* simplify code
KomachiSion pushed a commit that referenced this issue Jul 12, 2021
* fix typo

* add unit test for ClassUtils
SunJiFengPlus pushed a commit to SunJiFengPlus/nacos that referenced this issue Jul 21, 2021
SunJiFengPlus pushed a commit to SunJiFengPlus/nacos that referenced this issue Jul 22, 2021
KomachiSion pushed a commit that referenced this issue Jul 23, 2021
* replace the variable with a constant

* [ISSUE #5095] Add unit test for SelfHostnameVerifier
KomachiSion pushed a commit that referenced this issue Jul 26, 2021
* Add unit test for TlsFileWatcher

* replace explicit type argument with <>

* replace anonymous Runnable with lambda

* 'catch' parameter named 'ignored' is used

* adjust log style
KomachiSion pushed a commit that referenced this issue Jul 27, 2021
* fix typo

* Add unit test for RpcClientFactory
KomachiSion pushed a commit that referenced this issue Sep 23, 2021
* add some testcases for common executor

* style
KomachiSion pushed a commit that referenced this issue Sep 23, 2021
* add testcase for common base64

* testcase

* license
KomachiSion pushed a commit that referenced this issue Sep 23, 2021
* add testcase for common cache

* license
@stale
Copy link

stale bot commented Jan 9, 2022

Thanks for your feedback and contribution. But the issue/pull request has not had recent activity more than 180 days. This issue/pull request will be closed if no further activity occurs 7 days later.
We may solve this issue in new version. So can you upgrade to newest version and retry?
If there are still issues or want to contribute again. Please create new issue or pull request again.

@stale stale bot added the expired No active for a long time label Jan 9, 2022
@stale stale bot closed this as completed Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/Test expired No active for a long time
Projects
None yet
Development

No branches or pull requests

3 participants