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

FIWARE / contract-management / #67

27 Oct 2025 12:33PM UTC coverage: 1.686% (+0.04%) from 1.651%
#67

Pull #12

wistefan
wait for the policy
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

35.71
/src/main/java/org/fiware/iam/domain/ContractManagement.java
1
package org.fiware.iam.domain;
2

3
import lombok.Data;
4
import lombok.EqualsAndHashCode;
5
import lombok.NoArgsConstructor;
6

7
import java.util.Set;
8

9
/**
10
 * Pojo to hold all information required to connect with the contract management of a data-space participant.
11
 */
12
@EqualsAndHashCode
13
@Data
14
@NoArgsConstructor
15
public class ContractManagement {
16

17
    private boolean local = false;
1✔
18
    private String address;
19
    private String clientId;
20
    private Set<String> scope;
21

22
    public ContractManagement(boolean local) {
1✔
23
        if (!local) {
1✔
NEW
24
            throw new IllegalArgumentException("If the management is not local, address, clientId and scope need to be provided.");
×
25
        }
26
        this.local = local;
1✔
27
    }
1✔
28

NEW
29
    public ContractManagement(boolean local, String address, String clientId, Set<String> scope) {
×
NEW
30
        this.local = local;
×
NEW
31
        if (!local && (address == null || clientId == null || scope == null)) {
×
NEW
32
            throw new IllegalArgumentException("If the management is not local, address, clientId and scope need to be provided.");
×
33
        }
NEW
34
        this.address = address;
×
NEW
35
        this.clientId = clientId;
×
NEW
36
        this.scope = scope;
×
NEW
37
    }
×
38
}
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