我很难为以下测试课程找到合适的答案:
@ContextConfiguration("classpath:services.xml")
@RunWith(SpringJUnit4ClassRunner.class)
public class RunnableServiceTest {
@Test
public void testConfiguration(){
Collection<Service> lAllService = >>getBeansOfType(Service.class)<<;
assertFalse(lAllService.isEmpty());
}
}
我想从有界中收集所有 Spring 托管context
services.xml
的Service
.
我很确定一定有这样的东西,但我不知道我要搜索什么。
非常感谢您的帮助。
斯特凡