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

wistefan / ngsi-ld-java-mapping / #258

05 Feb 2025 03:12PM UTC coverage: 78.205% (-1.4%) from 79.617%
#258

Pull #76

web-flow
Merge branch 'main' into with-rel
Pull Request #76: support relationships

46 of 72 new or added lines in 3 files covered. (63.89%)

1 existing line in 1 file now uncovered.

610 of 780 relevant lines covered (78.21%)

0.78 hits per line

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

0.0
/src/main/java/io/github/wistefan/mapping/WellknownPreservingBase.java
1
package io.github.wistefan.mapping;
2

3

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

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

11
/**
12
 * Base class to be used for all generated VOs. Will preserve all properties that are not explicitly mapped.
13
 */
NEW
14
public class WellknownPreservingBase {
×
15

NEW
16
        private Map<String, String> wellknownProperties = new HashMap<>();
×
17

18
        @JsonAnyGetter
19
        public Map<String, String> getWellknownProperties() {
NEW
20
                return this.wellknownProperties;
×
21
        }
22

23
        @JsonAnySetter
24
        public void setWellknownProperties(String propertyKey, String value) {
NEW
25
                if (this.wellknownProperties == null) {
×
NEW
26
                        this.wellknownProperties = new HashMap();
×
27
                }
28

NEW
29
                this.wellknownProperties.put(propertyKey, value);
×
NEW
30
        }
×
31
}
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

© 2025 Coveralls, Inc