Cannot Reproduce
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Luis Majano
Luis MajanoPriority
Labels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
None
Affects versions
Created 19 July 2017 at 17:22
Updated 5 February 2021 at 12:14
Resolved 6 December 2018 at 05:53
I Hav ethe current test case:
It basically creates a new user in the datbase, flushes to make sure it persists
Then using my abstraction method it deletes by ID, I flush to persist and then clear the session to make sure the object is removed from the hibernate session cache. Then I try to load it and check if it exists. If I run this test case in isolation, then I have no issues. However, If I run this alongside other test cases that are similar, code below. Then the expectation fails, the entity load does in deed return the deleted user object.My gut feeling is that the clear session is not removing the objects from session.
Here are companion tests:
All the tests can be found here https://github.com/coldbox-modules/cbox-cborm/blob/development/tests/specs/ActiveEntityTest.cfc