-
Notifications
You must be signed in to change notification settings - Fork 45
Tests/services for Common-API #272
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
Open
Zapper9982
wants to merge
31
commits into
PSMRI:release-3.4.0
Choose a base branch
from
Zapper9982:tests/services-common
base: release-3.4.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 22 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
b0684d4
feat(test): MockMvc tests cases for controllers - CommonAPI
Zapper9982 4034a2c
Merge branch 'PSMRI:develop' into tests/controllers
Zapper9982 ba1a1e9
fix(test): springcontext overloading fixed for mockmvc
30423c7
fix(test): fixed according to codeRabbit suggestions
5c7230e
Delete .vscode/settings.json
Zapper9982 95e0ecd
fix(test): fixed according to codeRabbit suggestions
e8664a6
refactor(test):some redundant testfiles deleting
6e15991
refactor(test):avoiding lenient stubbing and removing unecessary stubβ¦
d844d6a
misc(test): added GNU General Public license to all testfiles
7251bf0
fix(test): fixed according to codeRabbit suggestions
dcff787
coverage(test) : increase coverage for feedback controller and added β¦
9d96d04
fix(undo): undo controller change
17e8555
fix(test): fixed according to codeRabbit suggestions
e9b2853
feat(test):added new test methods completing the controllers and utils
3cfa664
the complete change for IEMR wasnt pushed pushing
a7bbce5
fixing according to coderabbit and adding License
57ddf11
fixing some minor test issues
a2997b0
fix: pom xml version change
vishwab1 87e6629
fix: fixed the user session not found db issue (#269)
vishwab1 431ee92
Production_ASSAM_Session timeout issue (#270)
vishwab1 c7e06f7
test(service) : Added unit tests for CommonAPI
Zapper9982 82e4364
test(service) : Added unit test for CTIServiceImplTest
Zapper9982 5692283
fix(test) : fixed CTIServiceImplTest
Zapper9982 c21421d
license(add) : added GNU license to all test files
Zapper9982 266bc3c
remove(vscode) :settings.json
Zapper9982 43a5470
Merge pull request #276 from PSMRI/release-3.2.1
drtechie 0910a9b
Move code from Release 3.4.0 to main (#282)
vishwab1 934ee16
fix(test): Delete src/test/java/com/iemr/common/controller/carestreamβ¦
Zapper9982 12ff5f8
Merge branch 'PSMRI:main' into tests/services-common
Zapper9982 a33e2f8
test(workflow):workflow working
Zapper9982 5489097
test(workflow):making changes so that PR comment posted on PR's not fβ¦
Zapper9982 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.
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.
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.
Why is RestTemplate being passed here?
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.
because , since the rest template is being created and used in the function its not testable ... so passing a rest template allows the code to be tested
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.
another approach could also be that , the rest template could be defined at class level, but I wasnt sure that would be appropriate to do
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.
@Zapper9982 Is it really necessary to add this extra parameter to the function? Have you tested whether it will not affect the flow of the application?
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.
@vanitha1822 , yes as u can see I have changed all the calls to registereverwellPatient to have the rest template .