The Trunk: ToolBuilder-Tests-pre.3.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: ToolBuilder-Tests-pre.3.mcz

commits-2
Patrick Rein uploaded a new version of ToolBuilder-Tests to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Tests-pre.3.mcz

==================== Summary ====================

Name: ToolBuilder-Tests-pre.3
Author: pre
Time: 1 November 2018, 3:20:18.115173 pm
UUID: 5433dc13-2197-4e4f-a49d-c8ada3a4dacf
Ancestors: ToolBuilder-Tests-pre.2

Adds a test checking for classes handling ProvideAnswerNotification although the UIManager should be responsible.

=============== Diff against ToolBuilder-Tests-pre.2 ===============

Item was added:
+ TestCase subclass: #UIManagerTest
+ instanceVariableNames: ''
+ classVariableNames: ''
+ poolDictionaries: ''
+ category: 'ToolBuilder-Tests'!

Item was added:
+ ----- Method: UIManagerTest>>testUiManagersAreResponsibleForProvideAnswerNotification (in category 'tests') -----
+ testUiManagersAreResponsibleForProvideAnswerNotification
+
+ | classesUsingProvideAnswer otherValidReferences validReferences ignoredUsages |
+ validReferences := {BlockClosure . UIManager . self class}.
+ otherValidReferences := {ReleaseBuilder class}.
+ ignoredUsages := {PopUpMenu}. "Not yet refactored"
+ classesUsingProvideAnswer := ((SystemNavigation default allCallsOnClass: ProvideAnswerNotification) collect: [:m |
+ m actualClass]) asSet.
+ self
+ assert: (validReferences , otherValidReferences , ignoredUsages) asSet
+ equals: classesUsingProvideAnswer
+
+ !