Skip to content

Commit 0e54eb2

Browse files
Merge pull request #717 from moosetechnology/715-Missing-testing-methods-for-FamixTParametricEntity-users
Add testing for `FamixTParametricEntity`
2 parents 88ec1e7 + afa6e17 commit 0e54eb2

File tree

7 files changed

+30
-6
lines changed

7 files changed

+30
-6
lines changed

src/Famix-Java-Entities/FamixJavaEntity.class.st

+7
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@ FamixJavaEntity >> isPackage [
126126
^ false
127127
]
128128

129+
{ #category : #testing }
130+
FamixJavaEntity >> isParametricEntity [
131+
132+
<generated>
133+
^ false
134+
]
135+
129136
{ #category : #testing }
130137
FamixJavaEntity >> isPrimitiveType [
131138

src/Famix-Java-Entities/FamixJavaType.class.st

-5
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,6 @@ FamixJavaType >> isParameterType [
148148
^ false
149149
]
150150

151-
{ #category : #testing }
152-
FamixJavaType >> isParameterizedType [
153-
^ false
154-
]
155-
156151
{ #category : #testing }
157152
FamixJavaType >> isTestCase [
158153
<FMProperty: #isTestCase type: #Boolean>

src/Famix-MetamodelGeneration/FamixGenerator.class.st

+1
Original file line numberDiff line numberDiff line change
@@ -1888,6 +1888,7 @@ FamixGenerator >> defineTraits [
18881888

18891889
tParametricEntity := builder newTraitNamed: #TParametricEntity
18901890
comment: self commentForTParametricEntity .
1891+
tParametricEntity withTesting.
18911892
tConcreteParameterType := builder newTraitNamed: #TConcreteParameterType
18921893
comment: self commentForTConcreteParameterType.
18931894
tGenericParameterType := builder newTraitNamed: #TGenericParameterType

src/Famix-Test3-Entities/FamixTest3Entity.class.st

+7
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ FamixTest3Entity >> isPackage [
8484
^ false
8585
]
8686

87+
{ #category : #testing }
88+
FamixTest3Entity >> isParametricEntity [
89+
90+
<generated>
91+
^ false
92+
]
93+
8794
{ #category : #testing }
8895
FamixTest3Entity >> isQueryable [
8996

src/Famix-Test3-Entities/FamixTest3TypeGroup.class.st

+7
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ FamixTest3TypeGroup >> isPackage [
7676
^ false
7777
]
7878

79+
{ #category : #testing }
80+
FamixTest3TypeGroup >> isParametricEntity [
81+
82+
<generated>
83+
^ false
84+
]
85+
7986
{ #category : #testing }
8087
FamixTest3TypeGroup >> isQueryable [
8188

src/Famix-Traits/FamixTParametricEntity.trait.st

+7
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,13 @@ FamixTParametricEntity >> isGenericEntity [
159159
^ self concreteParameters anySatisfy: [ :p | p isParameterType ]
160160
]
161161

162+
{ #category : #testing }
163+
FamixTParametricEntity >> isParametricEntity [
164+
165+
<generated>
166+
^ true
167+
]
168+
162169
{ #category : #accessing }
163170
FamixTParametricEntity >> rootGenericEntity [
164171

src/Famix-Traits/FamixTWithTypes.trait.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| Relation | Origin | Opposite | Type | Comment |
77
|---|
88
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any.
9-
#types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
9+
types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
1010
1111
1212

0 commit comments

Comments
 (0)