python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
java.lang.RuntimeException: not supported: class org.spockframework.gentyref.CaptureTypeImpl
Spock is being used to execute an integration test in a Spring Boot project (2.1.18.RELEASE). When I run with 1.3-groovy-2.5, I get this error:
Caused by: java.lang.RuntimeException: not supported: cl...
mustbealennox
Votes: 0
Answers: 2
How can i mock new File() at method level in spock?
i have a method where i am
JSONArray execute(SonarqubeMaintenanceSetting settings) {
String projectsFilePath = "${settings.currentDirectory}/build/projects.json"
File targetDir...
rajkumar11
Votes: 0
Answers: 2
Why are exceptions thrown from mocks gone when using method count?
I am testing some Java code using spock unit tests. In one test case I need to test if a class behaves correctly when an exception is thrown. I mocked the call to throw an exception and then I test if...
geanakuch
Votes: 0
Answers: 1
Best approach to test several similar classes in spock test?
I have a lot of similar classes (actually it is different types of events with one parent class). It is about 30 classes already and the number will be growing. Every class has its own logic to proces...
sphinks
Votes: 0
Answers: 1