I had a mocked bean in a configuration: @Profile('test') @Configuration class TestSecurityConfig { private final mockFactory = new DetachedMockFactory() @Pr
I have a method that among others generates an identifier, sends it to some external dependency and returns it. I want to have a unit test that tests if the sam
I have a spring boot 2.6.7 app, using Liquibase, Gradle and Spock. I have a class that uses a guid format string as the ID: @Entity @Table(name = "devices") pu
When I was running unit test with spcok,An exception appears: Internal Error occurred. org.junit.platform.commons.JUnitException: TestEngine with ID 'spo
I am having trouble with using internal kotlin functions in my Spock tests. Here's short snippet of my spock test: private def preconditions = new MonetaryPrec