I am running the latest version of TestBox on a CF 10 server and I have one test case failing out of close to 100 tests. In this test suite / test case, I have the following mocked objects defined:
var PasswordResetMock = createEmptyMock( ‘com.system.security.PasswordReset’ );
var SecurityDAOMock = createEmptyMock( ‘com.system.security.SecurityDAO’ );
SecurityDAOMock.$( ‘getPasswordReset’, PasswordResetMock );
SecurityDAOMock.$( ‘savePasswordReset’, PasswordResetMock );
SecurityService.setSecurityDAO( SecurityDAOMock );
var result = SecurityService.changePassword( ‘goodToken’, ‘Password1’ );
Now, in the changePassword function on the SecurityService object, the code looks like this:
var PasswordReset = SecurityDAO.getPasswordReset( resetToken = arguments.resetToken )
SecurityDAO.savePasswordReset( PasswordReset );
The first line runs without issue. On the second line, the server just spins until I get a java heap space error and then crashes.
All of the other test cases in this test suite and several other test suites work just fine, many of them using mocked objects including this SecurityDAO mock. The live code works without error as well. But I cannot figure out what is causing this one test case to crash the server.
Any ideas what I am missing or where I can look?
Thanks,
– Jeff