• 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

0.0
/resource-function-activation/src/main/java/org/fiware/tmforum/resourcefunction/domain/Monitor.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

12
import java.net.URI;
13

14
@EqualsAndHashCode(callSuper = true)
×
15
@MappingEnabled(entityType = Monitor.TYPE_MONITOR)
16
public class Monitor extends EntityWithId {
17

18
    public static final String TYPE_MONITOR = "monitor";
19

20
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "href")}))
×
21
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "href")}))
×
22
    private URI href;
23

24
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "sourceHref")}))
×
25
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "sourceHref")}))
×
26
    private URI sourceHref;
27

28
    // TODO: according to the doc it might be an enum: InProgress, InError, Completed. Needs clarification.
29
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "state")}))
×
30
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "state")}))
×
31
    private String state;
32

33
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "request")}))
×
34
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "request")}))
×
35
    private Request request;
36

37
    @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY, targetName = "response")}))
×
38
    @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY, targetName = "response")}))
×
39
    private Response response;
40

41
    public Monitor(String id) {
42
        super(TYPE_MONITOR, id);
×
43
    }
×
44

45
    @Override
46
    public String getEntityState() {
47
        return state;
×
48
    }
49
}
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