尝试设置项目,但在通过Spring自动装配对象时失败。 package se.hsr.web;
public class TestRunner {
public static void main(String[] args) {
ContactDAO cd = new ContactDAOImpl();
Contact contact = new Conta
我有其被定义为这样的非服务类: class A{
B b
A(B b){ this.b = b }
}
其中B是一个Grails服务。在我的单元测试,我尝试这样做: A a = new A(new B()); 出于某种原因,然而,b永远不会被设置,以及可变b [local, the argument to the mehod]运行测试时,甚至没有可见的Intelli-J的
无论出于何种原因,当我尝试运行任何集成测试,我发现了以下内容: Initialization of bean failed; nested exception is
org.springframework.beans.ConversionNotSupportedException: Failed to convert property
value of type
'myproject.p