package com.jy.demo.web;

import java.util.Map;

import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.jy.modules.client.service.MainDataService;

public class InterfaceTest {
    private static MainDataService mainDataService;
    
      @BeforeClass
        public static void setUpBeforeClass() throws Exception {
            ClassPathXmlApplicationContext ct=new ClassPathXmlApplicationContext("spring-base.xml");//取到系统核心配置文件
            mainDataService=ct.getBean("com.jy.modules.client.service.MainDataService",MainDataService.class);//从bean工程获取接口bean
        }
    
      @Test
//调用接口
public void testInterface2001(){ Map<String, String> map = null; try { map = mainDataService.searchCustInfoByCr("CR20150500000153"); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } }

 

相关文章:

  • 2021-05-15
  • 2021-12-25
  • 2022-12-23
  • 2021-05-27
  • 2021-06-16
  • 2021-09-27
  • 2021-08-01
猜你喜欢
  • 2021-08-26
  • 2022-12-23
  • 2021-08-20
  • 2021-04-17
  • 2022-12-23
  • 2021-07-06
  • 2021-10-26
相关资源
相似解决方案