Category "spock"

Assert mock call with argument assigned in where block in Spock

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

unable to test UUID

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

Spock TestEngine with ID 'spock' failed to discover tests

When I was running unit test with spcok,An exception appears: Internal Error occurred. org.junit.platform.commons.JUnitException: TestEngine with ID 'spo

Spock and internal kotlin function

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