@@ -17,10 +17,10 @@ CompositeSystemTest >> testCannotRegisterAnAlreadyStartedSystem [
17
17
startUp.
18
18
19
19
self
20
- assert: (composite >> #CustomerManagementSystem ) isStarted;
20
+ assert: ( composite >> #CustomerManagementSystem ) isStarted;
21
21
should: [ CompositeSystem new register: composite >> #CustomerManagementSystem ]
22
22
raise: SystemControlError
23
- withExceptionDo: [ :error | self assert: error messageText equals: ' Cannot register a subsystem not stopped (CMS)' ]
23
+ withMessageText: ' Cannot register a subsystem not stopped (CMS)'
24
24
]
25
25
26
26
{ #category : #tests }
@@ -97,7 +97,7 @@ CompositeSystemTest >> testGettingSystemImplementingInterface [
97
97
self
98
98
should: [ system >> #ProjectManagementSystem ]
99
99
raise: SystemControlError
100
- withExceptionDo: [ :error | self assert: error messageText equals: ' System implementing "Project Management" not found.' ]
100
+ withMessageText: ' System implementing "Project Management" not found.'
101
101
]
102
102
103
103
{ #category : #tests }
@@ -182,7 +182,7 @@ CompositeSystemTest >> testSendingMessagesToSystemWithUnresolvedSystemDependency
182
182
self
183
183
should: [ system >> #ProjectManagementSystem addProjectNamed: ' Fail' for: ' Pedro' ]
184
184
raise: SystemControlError
185
- withExceptionDo: [ :error | self assert: error messageText equals: ' Unresolved system dependency to "Customer Querying"' ]
185
+ withMessageText: ' Unresolved system dependency to "Customer Querying"'
186
186
]
187
187
188
188
{ #category : #tests }
@@ -219,7 +219,7 @@ CompositeSystemTest >> testSystemMissingDependenciesWillNotStart [
219
219
self
220
220
should: [ composite startUp ]
221
221
raise: SystemControlError
222
- withExceptionDo: [ :error | self assert: error messageText equals: ' System implementing "Customer Querying" not found.' ]
222
+ withMessageText: ' System implementing "Customer Querying" not found.'
223
223
]
224
224
225
225
{ #category : #tests }
@@ -253,5 +253,5 @@ CompositeSystemTest >> testWontStartWhenRequiredSystemNotFound [
253
253
self
254
254
should: [ system startUp ]
255
255
raise: SystemControlError
256
- withExceptionDo: [ :error | self assert: error messageText equals: ' System implementing "Customer Querying" not found.' ]
256
+ withMessageText: ' System implementing "Customer Querying" not found.'
257
257
]
0 commit comments