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

wistefan / tmforum-api / #49

29 Sep 2023 06:20AM UTC coverage: 67.488% (-4.3%) from 71.815%
#49

push

web-flow
Notifications (#23)

* Squashed commits

* Added cache invalidation for entity deletion

* Updated error message

618 of 618 new or added lines in 86 files covered. (100.0%)

2794 of 4140 relevant lines covered (67.49%)

0.67 hits per line

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

91.67
/resource-function-activation/src/main/java/org/fiware/tmforum/resourcefunction/domain/Heal.java
1
package org.fiware.tmforum.resourcefunction.domain;
2

3
import lombok.EqualsAndHashCode;
4
import lombok.Getter;
5
import lombok.Setter;
6
import org.fiware.tmforum.common.domain.EntityWithId;
7
import io.github.wistefan.mapping.annotations.AttributeGetter;
8
import io.github.wistefan.mapping.annotations.AttributeSetter;
9
import io.github.wistefan.mapping.annotations.AttributeType;
10
import io.github.wistefan.mapping.annotations.MappingEnabled;
11
import org.fiware.tmforum.resource.Characteristic;
12

13
import java.net.URI;
14
import java.util.List;
15

16

17
@EqualsAndHashCode(callSuper = true)
×
18
@MappingEnabled(entityType = Heal.TYPE_HEAL)
19
public class Heal extends EntityWithId {
20

21
    public static final String TYPE_HEAL = "heal";
22

23
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "href")}))
1✔
24
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "href")}))
1✔
25
    private URI href;
26

27
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "cause")}))
1✔
28
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "cause")}))
1✔
29
    private String cause;
30

31
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "degreeOfHealing")}))
1✔
32
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "degreeOfHealing")}))
1✔
33
    private String degreeOfHealing;
34

35
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "healAction")}))
1✔
36
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "healAction")}))
1✔
37
    private String healAction;
38

39
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "name")}))
1✔
40
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "name")}))
1✔
41
    private String name;
42

43
    // Defined as string by the api, no format restrictions applied. Check if that changes in the future.
44
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "startTime")}))
1✔
45
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "startTime")}))
1✔
46
    private String startTime;
47

48
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY_LIST, targetName = "additionalParms")}))
1✔
49
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY_LIST, targetName = "additionalParms", targetClass = Characteristic.class)}))
1✔
50
    private List<Characteristic> additionalParms;
51

52
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.RELATIONSHIP, targetName = "healPolicy")}))
1✔
53
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.RELATIONSHIP, targetName = "healPolicy", targetClass = HealPolicyRef.class)}))
1✔
54
    private HealPolicyRef healPolicy;
55

56
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.RELATIONSHIP, targetName = "resourceFunction")}))
1✔
57
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.RELATIONSHIP, targetName = "resourceFunction", targetClass = ResourceFunctionRef.class)}))
1✔
58
    private ResourceFunctionRef resourceFunction;
59

60
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "state")}))
1✔
61
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "state")}))
1✔
62
    private TaskState state;
63

64
    public Heal(String id) {
65
        super(TYPE_HEAL, id);
1✔
66
    }
1✔
67

68
    @Override
69
    public String getEntityState() {
70
        return state != null ? state.getValue() : null;
×
71
    }
72
}
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