Spring 测试<13>

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:config.dao/applicationContext-dao.xml"})
public class ApplicationTest {
    Logger logManager = LogManager.getLogger(ApplicationTest.class);
    @Autowired
    private UserMapper userMapper;
    @Test
    public void testEnum() {
      ...code...
    }
}

你可能感兴趣的:(Spring 测试<13>)