Coverage Report - com.ctrip.framework.apollo.portal.service.PortalClusterService
 
Classes in this File Line Coverage Branch Coverage Complexity
PortalClusterService
50%
1/2
N/A
1
 
 1  
 package com.ctrip.framework.apollo.portal.service;
 2  
 
 3  
 import com.ctrip.framework.apollo.core.enums.Env;
 4  
 import com.ctrip.framework.apollo.core.dto.ClusterDTO;
 5  
 import com.ctrip.framework.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 PortalClusterService {
 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  
 }