##### Coverage Report - com.ctrip.framework.apollo.portal.auth.NotCtripUserInfoHolder

Classes in this File | Line Coverage | Branch Coverage | Complexity
NotCtripUserInfoHolder |
40% | 2/5
N/A | N/A
| 1.0;1

1 |  |
     package com.ctrip.framework.apollo.portal.auth;
2 |  |
3 |  |
     import com.ctrip.framework.apollo.portal.entity.po.UserInfo;
4 |  |
5 |  |
     /**
6 |  |
      * 不是ctrip的公司默认提供一个假用户
7 |  |
      */
8 |  |
     public class NotCtripUserInfoHolder implements UserInfoHolder{
9 |  |
10 |  |
11 | 1 |
       public NotCtripUserInfoHolder(){
12 |  |
13 | 1 |
       }
14 |  |
15 |  |
       @Override
16 |  |
       public UserInfo getUser() {
17 | 0 |
         UserInfo userInfo = new UserInfo();
18 | 0 |
         userInfo.setUsername("apollo");
19 | 0 |
         return userInfo;
20 |  |
       }
21 |  |
     }