美文网首页
java单元测试

java单元测试

作者: 俏皮但幺妹 | 来源:发表于2019-04-26 10:45 被阅读0次
    package com.shanyuan.platform;
    
    import com.shanyuan.SaasApplication;
    import com.shanyuan.platform.ms.core.login.UserLoginService;
    import com.shanyuan.platform.ms.facade.login.UserLoginFacade;
    import com.shanyuan.platform.ms.facade.user.UserFacade;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.boot.test.context.SpringBootTest;
    import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
    import org.springframework.cloud.netflix.feign.EnableFeignClients;
    import org.springframework.cloud.netflix.hystrix.EnableHystrix;
    import org.springframework.context.annotation.ComponentScan;
    import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
    import org.springframework.test.context.junit4.SpringRunner;
    
    @RunWith(SpringJUnit4ClassRunner.class)
    @SpringBootTest(classes = SaasApplication.class)
    public class TestOr {
    
    
        @Autowired
        UserLoginService userLoginService;
        @Autowired
        UserLoginFacade userLoginFacade;
    
        @Test
        public void testNNN(){
            userLoginService.getUserInfoByUserName("nnn");
    
        }
    
        @Test
        public void testEEEE(){
            userLoginFacade.createUserInfo(24,"17862818850","11","11","13583150535",null,1,null,null,null,24,null,"123456");
        }
    }
    

    相关文章

      网友评论

          本文标题:java单元测试

          本文链接:https://www.haomeiwen.com/subject/eiqfnqtx.html