zoukankan      html  css  js  c++  java
  • spring boot 测试类

    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.boot.test.context.SpringBootTest;
    import org.springframework.test.context.junit4.SpringRunner;

    import com.alibaba.fastjson.JSON;
    import com.alibaba.fastjson.serializer.SerializerFeature;

    @SpringBootTest
    @RunWith(SpringRunner.class)
    public class UserAddressTest {
    private static final Logger LOG = LoggerFactory.getLogger(UserAddressTest.class);

    //@Autowired
    //private IUserAddressService addressService;


    @Test
    public void findAddress() {
    // String userCode = "aa3ff3af-7ad2-4957-af6d-8822bd53b026";
    // Result result = addressService.selectUserAddress(userCode);
    // LOG.info("返回的结果是:{}",result);
    // LOG.info("结果数据格式化后是:{}",JSON.toJSONString(result,SerializerFeature.PrettyFormat,SerializerFeature.WriteMapNullValue));
    }
    }

  • 相关阅读:
    CF 142B Tprimes
    CF 231A Team
    poj 2001 Shortest Prefixes ——字典树入门
    hdu 1039 Easier Done Than Said?
    poj 2528 Mayor's posters
    hdu 1061 Rightmost Digit
    poj 2503 Babelfish
    CF271 A. Beautiful Year
    poj 2752
    CF271 B. Prime Matrix
  • 原文地址:https://www.cnblogs.com/maohuidong/p/9894828.html
Copyright © 2011-2022 走看看