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

FIWARE / contract-management / #69

30 Oct 2025 07:38AM UTC coverage: 1.686% (+0.04%) from 1.651%
#69

Pull #12

wistefan
improve organization creation and cleanup
Pull Request #12: Support for central marketplace and policy creation

117 of 1238 new or added lines in 31 files covered. (9.45%)

5 existing lines in 2 files now uncovered.

587 of 34807 relevant lines covered (1.69%)

0.02 hits per line

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

0.0
/src/main/java/org/fiware/iam/management/CMMapper.java
1
package org.fiware.iam.management;
2

3
import org.fiware.iam.cm.model.CredentialVO;
4
import org.fiware.iam.cm.model.OdrlPolicyJsonVO;
5
import org.fiware.iam.til.model.CredentialsVO;
6
import org.mapstruct.Mapper;
7

8
import java.util.Map;
9

10
@Mapper(componentModel = "jsr330")
11
public interface CMMapper {
12

13
    CredentialVO map(CredentialsVO credentialsVO);
14

15
    CredentialsVO map(CredentialVO credentialVO);
16

17
    default OdrlPolicyJsonVO map(Map<String, Object> policy) {
NEW
18
        if (policy == null) {
×
NEW
19
            return null;
×
20
        }
NEW
21
        OdrlPolicyJsonVO odrlPolicyJsonVO = new OdrlPolicyJsonVO();
×
NEW
22
        policy.entrySet()
×
NEW
23
                .forEach(e -> odrlPolicyJsonVO.setAdditionalProperties(e.getKey(), e.getValue()));
×
NEW
24
        return odrlPolicyJsonVO;
×
25
    }
26
}
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