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

Correct the test semantics of the test case in ItemSetControllerTest #4823

Merged
merged 92 commits into from
Apr 1, 2023

Conversation

klboke
Copy link
Contributor

@klboke klboke commented Mar 28, 2023

What's the purpose of this PR

Correct the test semantics of the test case in ItemSetControllerTest.

motivation

  • Reduce the code for constructing RestTemplate.
  • As only three places are expected to catch exceptions, there is no need to use noErrorHandlerRestTemplate in other places.

klboke and others added 30 commits May 16, 2019 11:07
@klboke klboke requested a review from nobodyiam March 28, 2023 11:15
@codecov
Copy link

codecov bot commented Mar 28, 2023

Codecov Report

Merging #4823 (8ef4645) into master (a86ed25) will increase coverage by 0.08%.
The diff coverage is n/a.

❗ Current head 8ef4645 differs from pull request most recent head d638637. Consider uploading reports for the commit d638637 to get more accurate results

@@             Coverage Diff              @@
##             master    #4823      +/-   ##
============================================
+ Coverage     48.15%   48.24%   +0.08%     
- Complexity     1719     1721       +2     
============================================
  Files           346      346              
  Lines         10777    10777              
  Branches       1075     1075              
============================================
+ Hits           5190     5199       +9     
+ Misses         5265     5256       -9     
  Partials        322      322              

see 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@nobodyiam
Copy link
Member

How about we use restTemplate and add try catch block in the test codes?

@klboke
Copy link
Contributor Author

klboke commented Mar 29, 2023

How about we use restTemplate and add try catch block in the test codes?

Yes, the code has been adjusted

Copy link
Member

@nobodyiam nobodyiam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nobodyiam nobodyiam merged commit 84af88f into apolloconfig:master Apr 1, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Apr 1, 2023
@nobodyiam nobodyiam added this to the 2.2.0 milestone Aug 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants