• 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

18.37
/app/src/main/java/org/moosetechnology/model/famix/famixjavaentities/NamedEntity.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.TNamedEntity;
11
import org.moosetechnology.model.famix.famixtraits.TWithAnnotationInstances;
12
import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency;
13

14

15
@FamePackage("Famix-Java-Entities")
16
@FameDescription("NamedEntity")
17
public class NamedEntity extends SourcedEntity implements TEntityMetaLevelDependency, TNamedEntity, TWithAnnotationInstances {
3✔
18

19
    private Collection<TAnnotationInstance> annotationInstances; 
20

21
    private String name;
22
    
23

24

25
    @FameProperty(name = "annotationInstances", opposite = "annotatedEntity", derived = true)
26
    public Collection<TAnnotationInstance> getAnnotationInstances() {
27
        if (annotationInstances == null) {
3✔
28
            annotationInstances = new MultivalueSet<TAnnotationInstance>() {
12✔
29
                @Override
30
                protected void clearOpposite(TAnnotationInstance e) {
31
                    e.setAnnotatedEntity(null);
×
32
                }
×
33
                @Override
34
                protected void setOpposite(TAnnotationInstance e) {
35
                    e.setAnnotatedEntity(NamedEntity.this);
4✔
36
                }
1✔
37
            };
38
        }
39
        return annotationInstances;
3✔
40
    }
41
    
42
    public void setAnnotationInstances(Collection<? extends TAnnotationInstance> annotationInstances) {
43
        this.getAnnotationInstances().clear();
×
44
        this.getAnnotationInstances().addAll(annotationInstances);
×
45
    }                    
×
46
    
47
        
48
    public void addAnnotationInstances(TAnnotationInstance one) {
49
        this.getAnnotationInstances().add(one);
×
50
    }   
×
51
    
52
    public void addAnnotationInstances(TAnnotationInstance one, TAnnotationInstance... many) {
53
        this.getAnnotationInstances().add(one);
×
54
        for (TAnnotationInstance each : many)
×
55
            this.getAnnotationInstances().add(each);
×
56
    }   
×
57
    
58
    public void addAnnotationInstances(Iterable<? extends TAnnotationInstance> many) {
59
        for (TAnnotationInstance each : many)
×
60
            this.getAnnotationInstances().add(each);
×
61
    }   
×
62
                
63
    public void addAnnotationInstances(TAnnotationInstance[] many) {
64
        for (TAnnotationInstance each : many)
×
65
            this.getAnnotationInstances().add(each);
×
66
    }
×
67
    
68
    public int numberOfAnnotationInstances() {
69
        return getAnnotationInstances().size();
4✔
70
    }
71

72
    public boolean hasAnnotationInstances() {
73
        return !getAnnotationInstances().isEmpty();
×
74
    }
75

76
    @FameProperty(name = "fanIn", derived = true)
77
    public Number getFanIn() {
78
        // TODO: this is a derived property, implement this method manually.
79
        throw new UnsupportedOperationException("Not yet implemented!");  
×
80
    }
81
    
82
    @FameProperty(name = "fanOut", derived = true)
83
    public Number getFanOut() {
84
        // TODO: this is a derived property, implement this method manually.
85
        throw new UnsupportedOperationException("Not yet implemented!");  
×
86
    }
87
    
88
    @FameProperty(name = "isDead", derived = true)
89
    public Boolean getIsDead() {
90
        // TODO: this is a derived property, implement this method manually.
91
        throw new UnsupportedOperationException("Not yet implemented!");  
×
92
    }
93
    
94
    @FameProperty(name = "isRoot", derived = true)
95
    public Boolean getIsRoot() {
96
        // TODO: this is a derived property, implement this method manually.
97
        throw new UnsupportedOperationException("Not yet implemented!");  
×
98
    }
99
    
100
    @FameProperty(name = "name")
101
    public String getName() {
102
        return name;
×
103
    }
104

105
    public void setName(String name) {
106
        this.name = name;
×
107
    }
×
108
    
109
    @FameProperty(name = "numberOfAnnotationInstances", derived = true)
110
    public Number getNumberOfAnnotationInstances() {
111
        // TODO: this is a derived property, implement this method manually.
112
        throw new UnsupportedOperationException("Not yet implemented!");  
×
113
    }
114

115
    @FameProperty(name = "numberOfContainedEntities", derived = true)
116
    public Number getNumberOfContainedEntities() {
117
        // TODO: this is a derived property, implement this method manually.
NEW
118
        throw new UnsupportedOperationException("Not yet implemented!");
×
119
    }
120
    
121
    @FameProperty(name = "numberOfDeadChildren", derived = true)
122
    public Number getNumberOfDeadChildren() {
123
        // TODO: this is a derived property, implement this method manually.
124
        throw new UnsupportedOperationException("Not yet implemented!");  
×
125
    }
126
    
127
    @FameProperty(name = "numberOfExternalClients", derived = true)
128
    public Number getNumberOfExternalClients() {
129
        // TODO: this is a derived property, implement this method manually.
130
        throw new UnsupportedOperationException("Not yet implemented!");  
×
131
    }
132
    
133
    @FameProperty(name = "numberOfExternalProviders", derived = true)
134
    public Number getNumberOfExternalProviders() {
135
        // TODO: this is a derived property, implement this method manually.
136
        throw new UnsupportedOperationException("Not yet implemented!");  
×
137
    }
138
    
139
    @FameProperty(name = "numberOfInternalClients", derived = true)
140
    public Number getNumberOfInternalClients() {
141
        // TODO: this is a derived property, implement this method manually.
142
        throw new UnsupportedOperationException("Not yet implemented!");  
×
143
    }
144
    
145
    @FameProperty(name = "numberOfInternalProviders", derived = true)
146
    public Number getNumberOfInternalProviders() {
147
        // TODO: this is a derived property, implement this method manually.
148
        throw new UnsupportedOperationException("Not yet implemented!");  
×
149
    }
150
    
151

152

153
}
154

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