Skip to content

Commit bdef85a

Browse files
committed
Issue #953: checkpoint ... addressed the set of regressions from last round of battery tests
1 parent 11414ea commit bdef85a

File tree

3 files changed

+31
-24
lines changed

3 files changed

+31
-24
lines changed

rowan/src/Rowan-TestsV3/RwRowanSample9V3Test.class.st

+24-17
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ RwRowanSample9V3Test class >> _rowanSample9ProjectName [
1919
^ 'RowanSample9V3'
2020
]
2121

22+
{ #category : 'private' }
23+
RwRowanSample9V3Test >> _rowanSampleProjectBaseName [
24+
"project base name"
25+
26+
^ 'RowanSample9V3'
27+
]
28+
2229
{ #category : 'private' }
2330
RwRowanSample9V3Test >> _spec_0079Name [
2431
"as part of the work on https://github.com/GemTalk/Rowan/issues/920; changes to filetree writer have been made to improve Rowan's
@@ -1252,7 +1259,7 @@ systemTraits installedTraits |
12521259
self assert: (audit := project audit) isEmpty.
12531260
trait1 := Rowan globalNamed: 'RowanSample9V3Trait1'.
12541261
(ClassOrganizer new traits) includes: trait1.
1255-
class1 := Rowan globalNamed: 'RowanSample9V3Class1'.
1262+
class1 := Rowan globalNamed: self _rowanSampleProjectBaseName, 'Class1'.
12561263
self assert: class1 new iv1 equals: nil.
12571264
self assert: class1 civ1 equals: nil.
12581265

@@ -2752,11 +2759,11 @@ RwRowanSample9V3Test >> testSpec_0084 [
27522759
_standard_validateLoadedProjects: loadedProjects
27532760
expectedProjectNames: projectNames.
27542761

2755-
trait1 := Rowan globalNamed: 'RowanSample9V3Trait1'.
2762+
trait1 := Rowan globalNamed: self _rowanSampleProjectBaseName, 'Trait1'.
27562763
(ClassOrganizer new traits) includes: trait1.
2757-
self assert: trait1 category equals: 'RowanSample9V3-Traits'.
2764+
self assert: trait1 category equals: self _rowanSampleProjectBaseName, '-Traits'.
27582765

2759-
class1 := Rowan globalNamed: 'RowanSample9V3Class1'.
2766+
class1 := Rowan globalNamed: self _rowanSampleProjectBaseName, 'Class1'.
27602767
self assert: class1 new iv1 equals: nil.
27612768
self assert: (class1 categoryOfSelector: #iv1) equals: #'accessing'.
27622769
self assert: (class1 categoryOfSelector: #cv1) equals: #'accessing'.
@@ -2821,8 +2828,8 @@ RwRowanSample9V3Test >> testSpec_0084 [
28212828

28222829
self assert: (audit := project audit) isEmpty not.
28232830
self assert: audit size equals: 1.
2824-
self assert: ((audit at: 'RowanSample9V3-Traits') at: trait1 name) size equals: 1.
2825-
self assert: (((audit at: 'RowanSample9V3-Traits') at: trait1 name) at: 1) reason
2831+
self assert: ((audit at: (self _rowanSampleProjectBaseName, '-Traits')) at: trait1 name) size equals: 1.
2832+
self assert: (((audit at: (self _rowanSampleProjectBaseName, '-Traits')) at: trait1 name) at: 1) reason
28262833
equals: #missingGemStoneTraitForLoadedTrait
28272834
]
28282835

@@ -2837,8 +2844,8 @@ RwRowanSample9V3Test >> testSpec_0084_forceDelete [
28372844
projectName := loadSpec projectName.
28382845
projectNames := {projectName }.
28392846

2840-
traitName := 'RowanSample9V3Trait1'.
2841-
className := 'RowanSample9V3Class1'.
2847+
traitName := self _rowanSampleProjectBaseName, 'Trait1'.
2848+
className := self _rowanSampleProjectBaseName, 'Class1'.
28422849

28432850
projectNames do: [:pn |
28442851
(Rowan image loadedProjectNamed: pn ifAbsent: [ ])
@@ -3346,10 +3353,10 @@ RwRowanSample9V3Test >> testSpec_0085_03_to_05 [
33463353
_standard_validateLoadedProjects: loadedProjects
33473354
expectedProjectNames: projectNames.
33483355

3349-
class1 := Rowan globalNamed: 'RowanSample9V3Class1'.
3356+
class1 := Rowan globalNamed: self _rowanSampleProjectBaseName, 'Class1'.
33503357
self assert: class1 classHistory size equals: 1.
33513358

3352-
trait1 := Rowan globalNamed: 'RowanSample9V3Trait1'.
3359+
trait1 := Rowan globalNamed: self _rowanSampleProjectBaseName, 'Trait1'.
33533360
self assert: ((ClassOrganizer new traits) includes: trait1) description: 'trait1 is unexpectedly not present'.
33543361
self assert: ((System myUserProfile symbolList dictionaryAndSymbolOf: trait1) at: 1) name equals: #'RowanSample9_1'.
33553362

@@ -3367,10 +3374,10 @@ RwRowanSample9V3Test >> testSpec_0085_03_to_05 [
33673374
_standard_validateLoadedProjects: loadedProjects
33683375
expectedProjectNames: projectNames.
33693376

3370-
class1 := Rowan globalNamed: 'RowanSample9V3Class1'.
3377+
class1 := Rowan globalNamed: self _rowanSampleProjectBaseName, 'Class1'.
33713378
self assert: class1 classHistory size equals: 2.
33723379

3373-
trait1 := Rowan globalNamed: 'RowanSample9V3Trait1'.
3380+
trait1 := Rowan globalNamed: self _rowanSampleProjectBaseName, 'Trait1'.
33743381
self assert: ((ClassOrganizer new traits) includes: trait1) description: 'trait1 is unexpectedly not present'.
33753382
self assert: ((System myUserProfile symbolList dictionaryAndSymbolOf: trait1) at: 1) name equals: #'RowanSample9_1'.
33763383
]
@@ -3405,10 +3412,10 @@ RwRowanSample9V3Test >> testSpec_0085_03_to_06_removeTrait [
34053412
_standard_validateLoadedProjects: loadedProjects
34063413
expectedProjectNames: projectNames.
34073414

3408-
class1 := Rowan globalNamed: 'RowanSample9V3Class1'.
3415+
class1 := Rowan globalNamed: self _rowanSampleProjectBaseName, 'Class1'.
34093416
self assert: class1 classHistory size equals: 1.
34103417

3411-
trait1 := Rowan globalNamed: 'RowanSample9V3Trait1'.
3418+
trait1 := Rowan globalNamed: self _rowanSampleProjectBaseName, 'Trait1'.
34123419
self assert: ((ClassOrganizer new traits) includes: trait1) description: 'trait1 is unexpectedly not present'.
34133420
self assert: ((System myUserProfile symbolList dictionaryAndSymbolOf: trait1) at: 1) name equals: #'RowanSample9_1'.
34143421

@@ -3426,7 +3433,7 @@ RwRowanSample9V3Test >> testSpec_0085_03_to_06_removeTrait [
34263433
_standard_validateLoadedProjects: loadedProjects
34273434
expectedProjectNames: projectNames.
34283435

3429-
trait1 := Rowan globalNamed: 'RowanSample9V3Trait1'.
3436+
trait1 := Rowan globalNamed: self _rowanSampleProjectBaseName, 'Trait1'.
34303437
self assert: trait1 isNil description: 'trait1 is unexpectedly present'.
34313438
self assert: class1 traits asArray equals: #().
34323439
self assert: class1 classTraits asArray equals: #().
@@ -3772,8 +3779,8 @@ RwRowanSample9V3Test >> testSpec_0085_trait_upgrade_simulation [
37723779
audit isEmpty
37733780
ifFalse: [ audit halt ].
37743781

3775-
class := Rowan globalNamed: 'RowanSample9V3Class1'.
3776-
trait := Rowan globalNamed: 'RowanSample9V3Trait1'.
3782+
class := Rowan globalNamed: self _rowanSampleProjectBaseName, 'Class1'.
3783+
trait := Rowan globalNamed: self _rowanSampleProjectBaseName, 'Trait1'.
37773784

37783785
trait removeAllMethods.
37793786
trait classTrait removeAllMethods.

rowan/src/Rowan-TestsV4/RwRowanSample9V4Test.class.st

+7
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ RwRowanSample9V4Test class >> _rowanSample9ProjectName [
1919
^ 'RowanSample9V4'
2020
]
2121

22+
{ #category : 'private' }
23+
RwRowanSample9V4Test >> _rowanSampleProjectBaseName [
24+
"project base name"
25+
26+
^ 'RowanSample9V4'
27+
]
28+
2229
{ #category : 'tests' }
2330
RwRowanSample9V4Test >> testIssue705 [
2431
"load Bridge, Child, Parent, Bridge, Parent, Child, Bridge sequentially"

rowan/src/Rowan-TestsV4/RwRowanSample9V4TestProjectLibraryGeneratorTester.class.st

-7
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ RwRowanSample9V4TestProjectLibraryGeneratorTester >> primaryProjectName [
2727
^ 'RowanSample9V4'
2828
]
2929

30-
{ #category : 'accessing' }
31-
RwRowanSample9V4TestProjectLibraryGeneratorTester >> projectReadmeIntro [
32-
"Intro in README -- change this to reflect that this is for V4.0 not V3.0 or V2.0 and that it is a v4 variant of RowanSample9V4"
33-
34-
^ 'Sample project that is being used to develop the **final** version of the V4.0 project handling API.'
35-
]
36-
3730
{ #category : 'accessing' }
3831
RwRowanSample9V4TestProjectLibraryGeneratorTester >> testCase [
3932
^testCase

0 commit comments

Comments
 (0)