-
Notifications
You must be signed in to change notification settings - Fork 477
Open
Labels
Description
Originally reported on Google Code with ID 277
1. Create some spy like: Spy(Foo, constructorArgs: 'foo')
2. If Foo class does not have any constructor then:
java.lang.ClassCastException
at java.lang.Class.cast(Class.java:2990)
at org.spockframework.mock.runtime.MockConfiguration.getOption(MockConfiguration.java:92)
at org.spockframework.mock.runtime.MockConfiguration.<init>(MockConfiguration.java:46)
at org.spockframework.lang.SpecInternals.createMock(SpecInternals.java:47)
at org.spockframework.lang.SpecInternals.createMockImpl(SpecInternals.java:282)
at org.spockframework.lang.SpecInternals.SpyImpl(SpecInternals.java:171)
at org.gradle.execution.ExcludedTaskFilteringBuildConfigurationActionTest.$spock_initializeFields(ExcludedTaskFilteringBuildConfigurationActionTest.groovy:30)
Reported by szczepiq on 2012-10-23 09:03:45