[Pkg] The Trunk: SystemChangeNotification-Tests-ul.19.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Sep 4 23:57:36 UTC 2012


Levente Uzonyi uploaded a new version of SystemChangeNotification-Tests to project The Trunk:
http://source.squeak.org/trunk/SystemChangeNotification-Tests-ul.19.mcz

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

Name: SystemChangeNotification-Tests-ul.19
Author: ul
Time: 5 September 2012, 1:55:27.881 am
UUID: 5313db41-d0e3-f94f-a45f-3dc35e7a28dc
Ancestors: SystemChangeNotification-Tests-laza.18

- release all refernces to classes created during ChangeHooksTests

=============== Diff against SystemChangeNotification-Tests-laza.18 ===============

Item was changed:
  ----- Method: ChangeHooksTest>>removeGeneratedTestClasses (in category 'Private') -----
  removeGeneratedTestClasses
  	"Remove all classes that were possibly generated during testing."
  	
  	| possiblyToRemove |
  	possiblyToRemove := OrderedCollection
  		with: self generatedTestClassName
  		with: self generatedTestClassNameX
  		with: self renamedTestClassName
  		with: self newlyCreatedClassName.
+ 	possiblyToRemove do: [:name | (Smalltalk hasClassNamed: name) ifTrue: [(Smalltalk at: name) removeFromSystemUnlogged]].
+ 	generatedTestClass := nil.
+ 	generatedTestClassX := nil!
- 	possiblyToRemove do: [:name | (Smalltalk hasClassNamed: name) ifTrue: [(Smalltalk at: name) removeFromSystemUnlogged]]!

Item was changed:
  ----- Method: ChangeHooksTest>>tearDown (in category 'Running') -----
  tearDown
  
- 	super tearDown.
  	self removeGeneratedTestClasses.
  	ChangeSet newChanges: previousChangeSet.
  	ChangesOrganizer removeChangeSet: testsChangeSet.
  	previousChangeSet := nil.
  	testsChangeSet := nil.
+ 	capturedEvents := nil.
+ 	createdMethod := nil.
+ 	super tearDown!
- !



More information about the Packages mailing list