@@ -32,6 +32,7 @@ LinkInstallerTest >> setUp [
32
32
{ #category : ' running' }
33
33
LinkInstallerTest >> tearDown [
34
34
ReflectivityExamples2 new removeModifiedMethodWithInstVarAccess.
35
+ ReflectivityExamples2 new removeNewMethodWithInstVarAccess.
35
36
ReflectivityExamples new removeTemporaryMethods.
36
37
super tearDown
37
38
]
@@ -475,8 +476,7 @@ LinkInstallerTest >> testPermaLinkNotInstalledOnObjectIfExistsInClass [
475
476
link installOnVariableNamed: #instVar for: obj option: #all instanceSpecific: true .
476
477
self assert: link nodes size equals: 8 .
477
478
478
- link uninstall.
479
- ReflectivityExamples2 new removeNewMethodWithInstVarAccess
479
+ link uninstall
480
480
]
481
481
482
482
{ #category : ' links - updating' }
@@ -751,8 +751,7 @@ LinkInstallerTest >> testSlotOrVarLinksAddedAfterMethodAddition [
751
751
752
752
|methodNode link |
753
753
methodNode := (ReflectivityExamples2 >> #methodWithInstVarAccess ) ast.
754
- ReflectivityExamples2 new removeNewMethodWithInstVarAccess.
755
-
754
+
756
755
link := MetaLink new .
757
756
link installOnVariableNamed: #instVar for: ReflectivityExamples2 option: #all instanceSpecific: false .
758
757
@@ -771,8 +770,7 @@ LinkInstallerTest >> testSlotOrVarLinksAddedAfterMethodAdditionForObject [
771
770
772
771
methodNode := (ReflectivityExamples2 >> #methodWithInstVarAccess ) ast.
773
772
obj := ReflectivityExamples2 new .
774
- ReflectivityExamples2 new removeNewMethodWithInstVarAccess.
775
-
773
+
776
774
link := MetaLink new .
777
775
link installOnVariableNamed: #instVar for: obj option: #all instanceSpecific: true .
778
776
@@ -787,7 +785,7 @@ LinkInstallerTest >> testSlotOrVarLinksAddedAfterMethodAdditionForObject [
787
785
{ #category : ' permalinks' }
788
786
LinkInstallerTest >> testSlotOrVarLinksRemainAfterMethodModification [
789
787
|methodNode link |
790
-
788
+ ReflectivityExamples2 new generateNewMethodWithInstVarAccess.
791
789
ReflectivityExamples2 new resetModifiedMethodWithInstVarAccess.
792
790
methodNode := (ReflectivityExamples2 >> #modifiedMethodWithInstVarAccess ) ast.
793
791
@@ -808,6 +806,7 @@ LinkInstallerTest >> testSlotOrVarLinksRemainAfterMethodModificationForObject [
808
806
|methodNode link obj |
809
807
810
808
obj := ReflectivityExamples2 new .
809
+ ReflectivityExamples2 new generateNewMethodWithInstVarAccess.
811
810
ReflectivityExamples2 new resetModifiedMethodWithInstVarAccess.
812
811
methodNode := (ReflectivityExamples2 >> #modifiedMethodWithInstVarAccess ) ast.
813
812
0 commit comments