单元测试新方法:用setUp方法 @Before注释

public class CentralizedPUDMatchServicePacTest {
PacMatchService pacMatchService;

@Before
public void setUp(){
pacMatchService = SpringTestHelper.get().getBean(PacMatchService.class);
}



@Test
public void testPacMatch(){

String pacAddress = "江苏省南京市玄武区珠江路435号";
DipanMatchBizAreaMatchMultiResponse response = pacMatchService.diPanMatch(pacAddress, "0000001");
// Assert.assertEquals(result.get(Constants.MATCHWAY),Constants.MATCHWAY_RANGE);
}

}

posted @ 2017-12-29 10:50  武红明  阅读(809)  评论(0编辑  收藏  举报