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

wistefan / tmforum-api / #68

24 Oct 2023 01:20PM UTC coverage: 67.773% (-0.4%) from 68.167%
#68

push

web-flow
Make dome working (#37)

* set defaults

* update mapping dep

* add redis as option

3287 of 4850 relevant lines covered (67.77%)

0.68 hits per line

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

0.0
/common/src/main/java/org/fiware/tmforum/common/domain/subscription/Subscription.java
1
package org.fiware.tmforum.common.domain.subscription;
2

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

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

15
@EqualsAndHashCode(callSuper = true)
×
16
@MappingEnabled(entityType = Subscription.TYPE_SUBSCRIPTION)
17
public class Subscription extends EntityWithId {
18
        public static final String TYPE_SUBSCRIPTION = "tm-forum-subscription";
19

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

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

28
        @Getter(onMethod = @__({ @AttributeGetter(value = AttributeType.PROPERTY, targetName = "rawQuery") }))
×
29
        @Setter(onMethod = @__({ @AttributeSetter(value = AttributeType.PROPERTY, targetName = "rawQuery") }))
×
30
        private String rawQuery;
31

32
        @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY_LIST, targetName = "eventTypes") }))
×
33
        @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY_LIST, targetName = "eventTypes", targetClass = String.class) }))
×
34
        private List<String> eventTypes;
35

36
        @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY_LIST, targetName = "entities") }))
×
37
        @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY_LIST, targetName = "entities", targetClass = String.class) }))
×
38
        private List<String> entities;
39

40
        @Getter(onMethod = @__({@AttributeGetter(value = AttributeType.PROPERTY_LIST, targetName = "fields") }))
×
41
        @Setter(onMethod = @__({@AttributeSetter(value = AttributeType.PROPERTY_LIST, targetName = "fields", targetClass = String.class) }))
×
42
        private List<String> fields;
43

44
        /**
45
         * Empty constructor for cache serialization and deserialization
46
         */
47
        public Subscription() {
48
                super(TYPE_SUBSCRIPTION, null);
×
49
        }
×
50

51
        public Subscription(String id) {
52
                super(TYPE_SUBSCRIPTION, id);
×
53
        }
×
54
}
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