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

FIWARE / contract-management / #36

09 Apr 2025 12:52PM UTC coverage: 1.745% (+0.8%) from 0.982%
#36

Pull #5

wistefan
fix tmf version
Pull Request #5: integrate contract negotiation

25 of 340 new or added lines in 12 files covered. (7.35%)

16673 existing lines in 365 files now uncovered.

588 of 33695 relevant lines covered (1.75%)

0.02 hits per line

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

80.0
/src/main/java/org/fiware/iam/tmforum/UnknownPreservingBase.java
1
package org.fiware.iam.tmforum;
2

3
import com.fasterxml.jackson.annotation.JsonAnyGetter;
4
import com.fasterxml.jackson.annotation.JsonAnySetter;
5
import com.fasterxml.jackson.annotation.JsonIgnore;
6

7
import java.util.HashMap;
8
import java.util.Map;
9

10
/**
11
 * Base class to be used for all generated VOs. Will preserve all properties that are not explicitly mapped.
12
 */
13
public class UnknownPreservingBase {
1✔
14

15
        private Map<String, Object> unknownProperties = new HashMap<>();
1✔
16

17
        @JsonAnyGetter
18
        public Map<String, Object> getUnknownProperties() {
19
                return this.unknownProperties;
1✔
20
        }
21

22
        @JsonAnySetter
23
        public void setUnknownProperties(String propertyKey, Object value) {
24
                if (this.unknownProperties == null) {
1✔
NEW
25
                        this.unknownProperties = new HashMap();
×
26
                }
27

28
                this.unknownProperties.put(propertyKey, value);
1✔
29
        }
1✔
30

31
        @JsonIgnore
32
        public UnknownPreservingBase unknownProperties(Map<String, Object> unknownProperties) {
33
                this.unknownProperties = unknownProperties;
1✔
34
                return this;
1✔
35
        }
36

37
        @JsonIgnore
38
        public <C> C getAtSchemaLocation() {
NEW
39
                return null;
×
40
        }
41
}
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