sbabcoc / JUnit-Foundation

JUnit Foundation is a lightweight collection of JUnit watchers, interfaces, and static utility classes that supplement and augment the functionality provided by the JUnit API.
Apache License 2.0
22 stars 6 forks source link

Add unit tests to verify release of framework objects #96

Closed sbabcoc closed 3 years ago

sbabcoc commented 3 years ago

I had to make significant revisions to resolve memory consumption issues caused by unmanaged retention of framework object references. To ensure that I don't introduce regressions in future revisions, I need to add unit tests to verify that all collected references are released at key points of execution for all supported scenarios:

Checks for reference retention must be performed at relevant points in the flow of execution. This can probably be accomplished with a properly crafted watcher/listener class.

sbabcoc commented 3 years ago