##### Coverage Report - com.ctrip.framework.apollo.biz.service.ReleaseMessageService

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

1 |  |
     package com.ctrip.framework.apollo.biz.service;
2 |  |
3 |  |
     import com.ctrip.framework.apollo.biz.entity.ReleaseMessage;
4 |  |
     import com.ctrip.framework.apollo.biz.repository.ReleaseMessageRepository;
5 |  |
6 |  |
     import org.springframework.beans.factory.annotation.Autowired;
7 |  |
     import org.springframework.stereotype.Service;
8 |  |
9 |  |
     import java.util.Collection;
10 |  |
11 |  |
     /**
12 |  |
      * @author Jason Song(song_s@ctrip.com)
13 |  |
      */
14 |  |
     @Service
15 | 1 |
     public class ReleaseMessageService {
16 |  |
       @Autowired
17 |  |
       private ReleaseMessageRepository releaseMessageRepository;
18 |  |
19 |  |
       public ReleaseMessage findLatestReleaseMessageForMessages(Collection<String> messages) {
20 | 0 |
         return releaseMessageRepository.findTopByMessageInOrderByIdDesc(messages);
21 |  |
       }
22 |  |
     }