If a ContainerGebSpec test is not annotated with @Integration, the webDriverContainer is null in cleanupSpec. This fix ensures that cleanupSpec checks for a null webDriverContainer, preventing a NullPointerException during cleanup for non-@Integration tests.
If a
ContainerGebSpec
test is not annotated with@Integration
, thewebDriverContainer
is null incleanupSpec
. This fix ensures thatcleanupSpec
checks for a nullwebDriverContainer
, preventing a NullPointerException during cleanup for non-@Integration
tests.