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

moosetechnology / VerveineJ / 22185271598

19 Feb 2026 02:12PM UTC coverage: 51.954% (+0.4%) from 51.544%
22185271598

push

github

web-flow
Merge pull request #199 from moosetechnology/initializers

Introducing initializers

1972 of 3976 branches covered (49.6%)

Branch coverage included in aggregate %.

105 of 127 new or added lines in 26 files covered. (82.68%)

1 existing line in 1 file now uncovered.

4343 of 8179 relevant lines covered (53.1%)

2.15 hits per line

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

49.32
/app/src/main/java/org/moosetechnology/model/famix/famixjavaentities/AnnotationInstance.java
1
// Automagically generated code, please do not change
2
package org.moosetechnology.model.famix.famixjavaentities;
3

4
import ch.akuhn.fame.FameDescription;
5
import ch.akuhn.fame.FamePackage;
6
import ch.akuhn.fame.FameProperty;
7
import ch.akuhn.fame.internal.MultivalueSet;
8
import java.util.*;
9
import org.moosetechnology.model.famix.famixtraits.TAnnotationInstance;
10
import org.moosetechnology.model.famix.famixtraits.TAnnotationInstanceAttribute;
11
import org.moosetechnology.model.famix.famixtraits.TAnnotationType;
12
import org.moosetechnology.model.famix.famixtraits.TWithAnnotationInstances;
13

14

15
@FamePackage("Famix-Java-Entities")
16
@FameDescription("AnnotationInstance")
17
public class AnnotationInstance extends SourcedEntity implements TAnnotationInstance {
3✔
18

19
    private TWithAnnotationInstances annotatedEntity;
20
    
21
    private TAnnotationType annotationType;
22
    
23
    private Collection<TAnnotationInstanceAttribute> attributes; 
24

25

26

27
    @FameProperty(name = "annotatedEntity", opposite = "annotationInstances")
28
    public TWithAnnotationInstances getAnnotatedEntity() {
29
        return annotatedEntity;
3✔
30
    }
31

32
    public void setAnnotatedEntity(TWithAnnotationInstances annotatedEntity) {
33
        if (this.annotatedEntity != null) {
3✔
34
            if (this.annotatedEntity.equals(annotatedEntity)) return;
6!
35
            this.annotatedEntity.getAnnotationInstances().remove(this);
×
36
        }
37
        this.annotatedEntity = annotatedEntity;
3✔
38
        if (annotatedEntity == null) return;
2!
39
        annotatedEntity.getAnnotationInstances().add(this);
5✔
40
    }
1✔
41
    
42
    @FameProperty(name = "annotationType", opposite = "instances")
43
    public TAnnotationType getAnnotationType() {
44
        return annotationType;
3✔
45
    }
46

47
    public void setAnnotationType(TAnnotationType annotationType) {
48
        if (this.annotationType != null) {
3✔
49
            if (this.annotationType.equals(annotationType)) return;
6!
50
            this.annotationType.getInstances().remove(this);
×
51
        }
52
        this.annotationType = annotationType;
3✔
53
        if (annotationType == null) return;
2!
54
        annotationType.getInstances().add(this);
5✔
55
    }
1✔
56
    
57
    @FameProperty(name = "attributes", opposite = "parentAnnotationInstance", derived = true)
58
    public Collection<TAnnotationInstanceAttribute> getAttributes() {
59
        if (attributes == null) {
3✔
60
            attributes = new MultivalueSet<TAnnotationInstanceAttribute>() {
12✔
61
                @Override
62
                protected void clearOpposite(TAnnotationInstanceAttribute e) {
63
                    e.setParentAnnotationInstance(null);
×
64
                }
×
65
                @Override
66
                protected void setOpposite(TAnnotationInstanceAttribute e) {
67
                    e.setParentAnnotationInstance(AnnotationInstance.this);
4✔
68
                }
1✔
69
            };
70
        }
71
        return attributes;
3✔
72
    }
73
    
74
    public void setAttributes(Collection<? extends TAnnotationInstanceAttribute> attributes) {
75
        this.getAttributes().clear();
×
76
        this.getAttributes().addAll(attributes);
×
77
    }                    
×
78
    
79
        
80
    public void addAttributes(TAnnotationInstanceAttribute one) {
81
        this.getAttributes().add(one);
×
82
    }   
×
83
    
84
    public void addAttributes(TAnnotationInstanceAttribute one, TAnnotationInstanceAttribute... many) {
85
        this.getAttributes().add(one);
×
86
        for (TAnnotationInstanceAttribute each : many)
×
87
            this.getAttributes().add(each);
×
88
    }   
×
89
    
90
    public void addAttributes(Iterable<? extends TAnnotationInstanceAttribute> many) {
91
        for (TAnnotationInstanceAttribute each : many)
10✔
92
            this.getAttributes().add(each);
6✔
93
    }   
1✔
94
                
95
    public void addAttributes(TAnnotationInstanceAttribute[] many) {
96
        for (TAnnotationInstanceAttribute each : many)
×
97
            this.getAttributes().add(each);
×
98
    }
×
99
    
100
    public int numberOfAttributes() {
101
        return getAttributes().size();
4✔
102
    }
103

104
    public boolean hasAttributes() {
105
        return !getAttributes().isEmpty();
×
106
    }
107

108
    @FameProperty(name = "fanIn", derived = true)
109
    public Number getFanIn() {
110
        // TODO: this is a derived property, implement this method manually.
111
        throw new UnsupportedOperationException("Not yet implemented!");  
×
112
    }
113
    
114
    @FameProperty(name = "fanOut", derived = true)
115
    public Number getFanOut() {
116
        // TODO: this is a derived property, implement this method manually.
117
        throw new UnsupportedOperationException("Not yet implemented!");  
×
118
    }
119
    
120
    @FameProperty(name = "isDead", derived = true)
121
    public Boolean getIsDead() {
122
        // TODO: this is a derived property, implement this method manually.
123
        throw new UnsupportedOperationException("Not yet implemented!");  
×
124
    }
125
    
126
    @FameProperty(name = "isRoot", derived = true)
127
    public Boolean getIsRoot() {
128
        // TODO: this is a derived property, implement this method manually.
129
        throw new UnsupportedOperationException("Not yet implemented!");  
×
130
    }
131

132
    @FameProperty(name = "numberOfContainedEntities", derived = true)
133
    public Number getNumberOfContainedEntities() {
134
        // TODO: this is a derived property, implement this method manually.
NEW
135
        throw new UnsupportedOperationException("Not yet implemented!");
×
136
    }
137
    
138
    @FameProperty(name = "numberOfDeadChildren", derived = true)
139
    public Number getNumberOfDeadChildren() {
140
        // TODO: this is a derived property, implement this method manually.
141
        throw new UnsupportedOperationException("Not yet implemented!");  
×
142
    }
143
    
144
    @FameProperty(name = "numberOfExternalClients", derived = true)
145
    public Number getNumberOfExternalClients() {
146
        // TODO: this is a derived property, implement this method manually.
147
        throw new UnsupportedOperationException("Not yet implemented!");  
×
148
    }
149
    
150
    @FameProperty(name = "numberOfExternalProviders", derived = true)
151
    public Number getNumberOfExternalProviders() {
152
        // TODO: this is a derived property, implement this method manually.
153
        throw new UnsupportedOperationException("Not yet implemented!");  
×
154
    }
155
    
156
    @FameProperty(name = "numberOfInternalClients", derived = true)
157
    public Number getNumberOfInternalClients() {
158
        // TODO: this is a derived property, implement this method manually.
159
        throw new UnsupportedOperationException("Not yet implemented!");  
×
160
    }
161
    
162
    @FameProperty(name = "numberOfInternalProviders", derived = true)
163
    public Number getNumberOfInternalProviders() {
164
        // TODO: this is a derived property, implement this method manually.
165
        throw new UnsupportedOperationException("Not yet implemented!");  
×
166
    }
167
    
168

169

170
}
171

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