package com.ake.dccs.ecs.test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.ake.dccs.ecs.service.MeterService;
import com.ake.dccs.ecs.service.UploadService;
@RunWith(SpringJUnit4ClassRunner.class) // 不能是PowerMock等别的class,否则无法识别spring的配置文件
@ContextConfiguration(locations = {"classpath:META-INF/spring/spring-application.xml"})// 读取spring配置文件
public class CarryDataTest {
@Autowired
private MeterService meterService;
@Autowired
private UploadService uploadService;
@Test
public void readBatData() throws Exception{
System.out.println("1111");
}
}