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
RainbowCakeConfiguration is only configurable from the Application which means the unit tests will have a default consumeExecuteExceptions = true, even if it's set to false in the application, thus I cannot test the exceptions inside the execute() methods.
Any workarounds for this?
The text was updated successfully, but these errors were encountered:
Ah, thanks for raising this, this seems like an oversight on my part. I guess changing configuration in unit tests simply haven't come up yet.
I'll look into providing a proper way to do this.
In the meantime, you could work around by accessing the otherwise internalRainbowCakeConfiguration object from Java code, or by creating something to call the rainbowCake method on. This doesn't have to be a real functioning Application instance, it can be a mock or just an Application you create by calling its constructor. E.g. MyApplication().rainbowCake()
Hi,
RainbowCakeConfiguration is only configurable from the Application which means the unit tests will have a default consumeExecuteExceptions = true, even if it's set to false in the application, thus I cannot test the exceptions inside the execute() methods.
Any workarounds for this?
The text was updated successfully, but these errors were encountered: