我有一个java项目和测试项目,其中使用了java项目中编写的代码。我需要将java代码转换为启用了spring的注释,并将它们作为自动连接的spring bean加载到测试项目中。下面显示了我的java项目中的java代码示例。code written to clear the data public String getVariable() {
//some code written to
我已经使用springboot和junit4编写了一个框架,但是没有找到测试,出现了下面的错误。java.lang.Exception: No runnable methods我的基类是@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfigurat