Skip to content

Commit 9302a1c

Browse files
authored
Merge pull request #701 from moosetechnology/merge-storages
Merge Moose storages
2 parents b2fca27 + 1cc9898 commit 9302a1c

8 files changed

+113
-377
lines changed

src/Moose-Core-Tests/MooseAbstractGroupTest.class.st

-18
Original file line numberDiff line numberDiff line change
@@ -120,24 +120,6 @@ MooseAbstractGroupTest >> testAllWithType [
120120
self assertEmpty: (group allWithType: Object)
121121
]
122122

123-
{ #category : #tests }
124-
MooseAbstractGroupTest >> testAllWithTypeAtRuntime [
125-
group addAll: {FamixTest3Class new . FamixTest3Method new}.
126-
group entityStorage forRuntime.
127-
self assert: (group allWithType: FamixTest3Class) size equals: 1.
128-
self assert: (group allWithType: FamixTest3Method) size equals: 1.
129-
self assertEmpty: (group allWithType: FamixTest3Invocation)
130-
]
131-
132-
{ #category : #tests }
133-
MooseAbstractGroupTest >> testAllWithTypeAtSetup [
134-
group addAll: {FamixTest3Class new . FamixTest3Method new}.
135-
group entityStorage forSetup.
136-
self assert: (group allWithType: FamixTest3Class) size equals: 1.
137-
self assert: (group allWithType: FamixTest3Method) size equals: 1.
138-
self assertEmpty: (group allWithType: FamixTest3Invocation)
139-
]
140-
141123
{ #category : #tests }
142124
MooseAbstractGroupTest >> testAllWithTypeThenAllWithSubTypesOf [
143125
group addAll: {FamixTest3Class new . FamixTest3Type new}.

src/Moose-Core-Tests/MooseGroupTest.class.st

-5
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ MooseGroupTest >> testAsMooseGroupWithClasses [
3030
self assert: group anyOne equals: Object
3131
]
3232

33-
{ #category : #tests }
34-
MooseGroupTest >> testDefaultStorage [
35-
self assert: (group entityStorage isKindOf: MooseGroupRuntimeStorage)
36-
]
37-
3833
{ #category : #tests }
3934
MooseGroupTest >> testDefaultStorageIterator [
4035
self assert: group entityStorage iterator class equals: IteratorWithCollectionAPI

src/Moose-Core/MooseAbstractGroup.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ MooseAbstractGroup >> initialize [
485485
MooseAbstractGroup >> initializeWithAll: aCollection [
486486

487487
self initialize.
488-
storage := MooseGroupRuntimeStorage new: aCollection size.
488+
storage := MooseGroupStorage new: aCollection size.
489489
self addAll: aCollection
490490
]
491491

src/Moose-Core/MooseGroupRuntimeStorage.class.st

-167
This file was deleted.

src/Moose-Core/MooseGroupSetupStorage.class.st

-117
This file was deleted.

0 commit comments

Comments
 (0)