Dev/junit

JUnit 에서 ApplicationContext 접근

냐옴 2013. 12. 11. 10:26

@RunWith(ExtSpringJUnit4ClassRunner.class)

@ContextConfiguration(locations = { "classpath:test/config/beans.xml" })

public class TestQuartz {

@Autowired

private ApplicationContext context;

@Test

public void test1() throws Exception {

System.out.println(context);

}


}



댓글수0