集成JUnit测试 既然使用了Spring,那么怎么集成到JUnit中进行测试呢,首先大家能够想到的肯定是: public class TestMain { @Test public void test(){ ApplicationContext context = new AnnotationConfigApplicationContext(TestConfiguration.class); TestService service = context.getBean(TestService.c…