【发布时间】:2011-02-13 16:51:22
【问题描述】:
我使用 Spring Roo 来生成 getter/setter。 当我更新我的测试类,然后从 Eclipse IDE (STS) 运行 JUnit 测试时,它看不到我所做的更改。 例如:
java.lang.NoSuchMethodError: com.example.web.forms.UserRegistrationForm_Roo_JavaBean.ajc$interMethodDispatch1$com_datefitting_web_forms_UserRegistrationForm_Roo_JavaBean$com_example_web_forms_UserRegistrationForm$setName(Lcom/datefitting/web/forms/UserRegistrationForm;Ljava/lang/String;)V`
在运行roo>perform tests 之后,即使在 IDE 中也一切正常。在项目设置中有AspectJ builder。
如何在 IDE 中运行 @RooJavaBean 注释类的 JUnit 测试,而不调用 mvn test 或 roo>perform tests?
【问题讨论】:
标签: eclipse spring-roo junit4 sts-springsourcetoolsuite