Repository navigation
Conversation
…H-5084) emrapi-omod.version -> 3.5.0-SNAPSHOT, episodes/auditLog/rulesEngine versions bumped to match the versions actually built/installed locally. Also swap the dependencyManagement-only powermock-api-mockito (Mockito 1 variant, incompatible with the Mockito 3.5.11 resolved transitively) for powermock-api-mockito2.
… mocking PowerMockito.mockStatic(Context.class / LocaleUtility.class) silently failed to intercept against Mockito 3.5.11 (NotAMockException: Argument should be a mock, but is: class java.lang.Class) across 8 test classes. Replaced with org.mockito.MockedStatic (needs mockito-inline, added to pom.xml in place of the now-unused powermock test dependencies). Also fixed two real path-handling bugs this surfaced: an application data directory lookup and a test resource lookup both used raw URL.getPath() instead of decoding it, which breaks on any path containing a space (as this checkout's path does) - switched to new File(url.toURI()).
Real API breaks from the platform bump: - BinaryDataHandler.getComplexDataFile(Obs) was removed (OpenMRS 2.x replaced direct File-based complex-obs storage with a pluggable StorageService abstraction). ImageUrlHandler/VideoUrlHandler now resolve the storage key via AbstractHandler.parseDataKey(obs) and read filename/mimeType from StorageService.getMetadata(key) directly, matching the pattern OpenMRS's own ImageHandler uses. - liquibase.util.file.FilenameUtils (removeExtension/getExtension) was removed from the newer bundled Liquibase; swapped to the equivalent org.apache.commons.io.FilenameUtils already on the classpath. Plus the same PowerMock -> native Mockito MockedStatic/MockedConstruction migration as bahmni-emr-api, across 8 test classes (Context/LocaleUtility static mocks, one FileInputStream constructor mock).
…tive Mockito static mocking (BAH-5084)
…mocking (BAH-5084)
…ockito static mocking (BAH-5084)
…c mocking (BAH-5084) Also fixes a latent test bug in ObsToObsTabularFlowSheetControllerTest: shouldCallGetPivotTableByConceptSetMethodWhenConceptSetIsGiven built its root concept as a set (withSet(true)) but never gave it a ConceptClass, so ObsToObsTabularFlowSheetController.getAllLeafConcepts's rootConcept.getConceptClass().getName() NPE'd. Unrelated to the platform bump - this module's tests had simply never run in CI before - fixed by giving the test concept a class, as any real concept would have.
…ockito 5.7.0 / Lombok 1.18.30 / Spring 5.3.30
|
Important Review skippedToo many files! This PR contains 130 files, which is 30 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. CodeRabbit couldn't verify your organization's usage billing state, so no usage-priced review was started. Retry after the billing service recovers.
|
…PowerMock onto native Mockito static mocking
| - name: Set up JDK 1.8 | ||
| uses: actions/setup-java@v1 | ||
| - name: Set up JDK 17 | ||
| uses: actions/setup-java@v4 |
…reading Odoo snake_case response (#364)
* BAH-5328 | Add. Seed bahmni.allowedDomains global property and expose it via the admin module config * BAH-5328 | Update. Rename allowedDomains global property to bahmni.duplicateCheckExtensions.allowedDomains
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


No description provided.