• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

loveapple / web-crawler / 60

10 Aug 2025 01:59PM UTC coverage: 97.674% (-2.3%) from 100.0%
60

push

circleci

Chunli Hao
add SiteContentsServiceTest case

15 of 19 new or added lines in 3 files covered. (78.95%)

168 of 172 relevant lines covered (97.67%)

0.98 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

60.0
/src/main/java/com/happinesea/webcrawler/repository/ContentsPostRepositoryImpl.java
1
package com.happinesea.webcrawler.repository;
2

3
import java.util.List;
4

5
import org.springframework.beans.factory.annotation.Autowired;
6
import org.springframework.boot.context.properties.ConfigurationProperties;
7
import org.springframework.context.annotation.Configuration;
8
import org.springframework.stereotype.Component;
9

10
import com.happinesea.webcrawler.dto.PostContentsResult;
11
import com.happinesea.webcrawler.entity.SiteContents;
12
import com.happinesea.webcrawler.exception.PostFailedException;
13

14
import lombok.Data;
15
import lombok.Getter;
16

17
@Component
18
public class ContentsPostRepositoryImpl implements ContentsPostRepository {
19

20
        @Getter
21
        @Autowired
22
        private final HostInfo hostInfo;
23

24
        public ContentsPostRepositoryImpl(HostInfo hostInfo) {
1✔
25
                this.hostInfo = hostInfo;
1✔
26
        }
1✔
27
        @Override
28
        public SiteContents postContents(SiteContents contents) throws PostFailedException {
29
                // TODO Auto-generated method stub
NEW
30
                return null;
×
31
        }
32

33
        @Override
34
        public PostContentsResult postContents(List<SiteContents> contentsList) {
35
                // TODO Auto-generated method stub
NEW
36
                return null;
×
37
        }
38

39
        @Data
40
        @Configuration
41
        @ConfigurationProperties(prefix = "web-crawler.host-info")
42
        public static class HostInfo {
43
                private String url;
44
                private String port;
45
                private String loginId;
46
                private String loginPw;
47
                private int postContentsLimitCount;
48
        }
49
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc