Dislaimer:有可能類似於一個問題,但它實際上是不同的:Mocking a Superclass in Spock 例: class Bar {
def method(){
return 'bar'
}
}
class Foo extends Bar {
def method() {
super.method() + ' foo
我有春天接口UserDetailsService的實現: @Service
public class UserDetailsServiceImpl implements UserDetailsService {
private final UserRepository userRepository;
@Autowired
public UserDetailsSe