##### Coverage Report - com.ctrip.apollo.portal.service.ClusterService

Classes in this File | Line Coverage | Branch Coverage | Complexity
ClusterService |
50% | 1/2
N/A | N/A
| 1.0;1

1 |  |
     package com.ctrip.apollo.portal.service;
2 |  |
3 |  |
     import com.ctrip.apollo.core.enums.Env;
4 |  |
     import com.ctrip.apollo.core.dto.ClusterDTO;
5 |  |
     import com.ctrip.apollo.portal.api.AdminServiceAPI;
6 |  |
7 |  |
     import org.springframework.beans.factory.annotation.Autowired;
8 |  |
     import org.springframework.stereotype.Service;
9 |  |
10 |  |
     import java.util.List;
11 |  |
12 |  |
     @Service
13 | 1 |
     public class ClusterService {
14 |  |
15 |  |
       @Autowired
16 |  |
       private AdminServiceAPI.ClusterAPI clusterAPI;
17 |  |
18 |  |
       public List<ClusterDTO> findClusters(Env env, String appId){
19 | 0 |
         return clusterAPI.findClustersByApp(appId, env);
20 |  |
       }
21 |  |
22 |  |
     }