@@ -16,37 +16,6 @@ MolComponentLifeCycleTest >> tearDown [
1616 MolComponentManager cleanUp.
1717]
1818
19- { #category : #' tests - component switching' }
20- MolComponentLifeCycleTest >> testStartAndStopComponentSeveralTimes [
21- " This test reproduce issue #246: Exception after several starts and stops of same component"
22-
23- | compA compB |
24- " start first implemention of a component contract"
25- compA := MolCompleteComponentImpl start: #compA .
26- compB := MolCompleteComponentImpl start: #compB .
27-
28- " link compB to compA"
29- compB forServices: MolUsedServices useProvider: #compA .
30- compB forEvents: MolUsedEvents useProducer: #compA .
31- compB getMolUsedEventsSubscriber subscribe: compB.
32-
33- " call the service of the first component, it answer #service"
34- self assert: compB getMolUsedServicesProvider service equals: #service .
35-
36- " stop and start component several times"
37- 1 to: 10 do: [ :i |
38- compB forEvents: MolUsedEvents removeProducer: #compA .
39- compB class stop: #compB .
40- compB := MolCompleteComponentImpl start: #compB .
41- compB forServices: MolUsedServices useProvider: #compA .
42- compB forEvents: MolUsedEvents useProducer: #compA .
43- compB getMolUsedEventsSubscriber subscribe: compB.
44- self assert: compB getMolUsedServicesProvider service equals: #service .
45- ].
46-
47-
48- ]
49-
5019{ #category : #' tests - component switching' }
5120MolComponentLifeCycleTest >> testSwitchComponentsSearchServicesProviderFor [
5221 " start first implemention of a component contract"
0 commit comments