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

torresj / community-api / 2

23 May 2025 01:56PM UTC coverage: 22.105%. First build
2

push

circleci

Jaime Torres Benavente
Project ready to be deployed

42 of 173 new or added lines in 18 files covered. (24.28%)

42 of 190 relevant lines covered (22.11%)

0.22 hits per line

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

0.0
/src/main/java/com/torresj/community/services/impl/CommunityServiceImpl.java
1
package com.torresj.community.services.impl;
2

3
import com.torresj.community.dtos.CommunityDto;
4
import com.torresj.community.exceptions.CommunityNotFoundException;
5
import com.torresj.community.mappers.CommunityMapper;
6
import com.torresj.community.repositories.CommunityRepository;
7
import com.torresj.community.services.CommunityService;
8
import java.util.List;
9
import lombok.RequiredArgsConstructor;
10
import lombok.extern.slf4j.Slf4j;
11
import org.springframework.stereotype.Service;
12

13
@Service
14
@RequiredArgsConstructor
NEW
15
@Slf4j
×
16
public class CommunityServiceImpl implements CommunityService {
17
  private final CommunityRepository repository;
18
  private final CommunityMapper communityMapper;
19

20
  @Override
21
  public CommunityDto create(String name, String description) {
NEW
22
    return null;
×
23
  }
24

25
  @Override
26
  public CommunityDto get(long communityId) throws CommunityNotFoundException {
NEW
27
    var optional = repository.findById(communityId);
×
NEW
28
    if (optional.isEmpty()) {
×
NEW
29
      throw new CommunityNotFoundException(communityId);
×
30
    }
NEW
31
    return communityMapper.toCommunityDto(optional.get());
×
32
  }
33

34
  @Override
35
  public List<CommunityDto> get() {
NEW
36
    return List.of();
×
37
  }
38

39
  @Override
40
  public CommunityDto getByUserId() {
NEW
41
    return null;
×
42
  }
43

44
  @Override
NEW
45
  public void update(String description) {}
×
46

47
  @Override
NEW
48
  public void delete(long communityId) {}
×
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