You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FilteredClassPathRunner doesn't set the TCCL when creating the test class. This means that the test class's fields are initialized while the TCCL is the app's class loader. This causes a problem with a field that's declared like this:
The application context is left with its ClassLoader being the app class loader. It needs to be the filtered class loader otherwise class cast exceptions are likely to occur during test execution.
The text was updated successfully, but these errors were encountered:
FilteredClassPathRunner
doesn't set the TCCL when creating the test class. This means that the test class's fields are initialized while the TCCL is the app's class loader. This causes a problem with a field that's declared like this:The application context is left with its
ClassLoader
being the app class loader. It needs to be the filtered class loader otherwise class cast exceptions are likely to occur during test execution.The text was updated successfully, but these errors were encountered: