You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "ashishvijaywargiya (via GitHub)" <gi...@apache.org> on 2026/06/01 12:42:19 UTC
[PR] Framework junit test cases fix [ofbiz-framework]
ashishvijaywargiya opened a new pull request, #1309:
URL: https://github.com/apache/ofbiz-framework/pull/1309
Framework junit test cases fix. Reported by @gtchaboussie.
Improved: Migrate framework Groovy tests to JUnit 5
The build environment uses Gradle's JUnit Platform which ignores legacy
JUnit 3 and 4 tests. This commit fully migrates the remaining 7 Groovy
test files in the framework folder to standard JUnit 5 conventions.
- Replaced `org.junit.Test` and legacy `TestCase` with `org.junit.jupiter.api.Test`
- Replaced `@Before` with `@BeforeEach` and updated assertion imports
- Fixed Mockito static mocking for `UtilProperties` in `ModelServiceTest`
- Ensured test names were isolated in `UtilCacheTest`
UtilCacheTest.groovy and other tests from framework folder can be seen at the following locations
https://drive.google.com/file/d/1g35oet3P8ceY_TDUASv282r6w3ByE5wZ/view?usp=sharing
https://drive.google.com/file/d/1SYuQnX1oWHq9svCXDgxvTHNSUfFZlGH9/view?usp=sharing
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ofbiz.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Framework junit test cases fix [ofbiz-framework]
Posted by "ashishvijaywargiya (via GitHub)" <gi...@apache.org>.
ashishvijaywargiya merged PR #1309:
URL: https://github.com/apache/ofbiz-framework/pull/1309
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ofbiz.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org