<During integration tests, objects that are passed...
# stackoverflow
u
During integration tests, objects that are passed as parameter in function in tests, class load time is different In our environment we are processing entities during class load, with Application Listener using spring.factories. In real product all entities are processed as expected. But in integration tests, if there is a function in test that takes an entity as parameter. This entity is not processed with application listener. In this case XEntity is not processed by listener. private fun assertResultIsCorrect(entity: XEntity) {} Work around solution is converting entity parameter from XEntity to...