Skip to content

Conversation

@gtchaboussie
Copy link

(OFBIZ-13311)

Improved: Rewrites the test class UtilCacheTest.

Changes the variable names to make them more clear and moves the test utility objects to a dedicated new class.
Also removes the GenericTestCaseBase, that was used only in the UtilCacheTest.
Deleted a part of the testExpire test method, that was based on the useAllMemory method, which is highly OS or hardware dependant making unit test dependant as well.

Thanks: Nicolas for the help in analyzing.

@gtchaboussie gtchaboussie changed the title Improved: Rewrite UtilCacheTest OFBIZ-13311 Improved: Rewrite UtilCacheTest Nov 5, 2025
cgaetan added 2 commits November 24, 2025 16:32
(OFBIZ-13311)

Rewrites the test class UtilCacheTest.
Changes the variable names to make them more clear and moves the
test utility objects to a dedicated new class.
Also removes the GenericTestCaseBase, that was used only in
the UtilCacheTest.
Deleted a part of the testExpire test method, that was based on
the useAllMemory method, which is highly OS or hardware dependant
making unit test dependant as well.

Thanks: Nicolas for the help in analyzing.
cgaetan added 2 commits November 24, 2025 16:47
Removes the Serializable interface from the test declaration.
Still successes, and there doesn't seems to be any advantage to it.
Removes the exception from test signature and fails the test in case of Exception.
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant