author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 13 Nov 2017 22:26:12 -0300 | |
changeset 1060 | af3a048f9618 |
parent 833 | 297eb38e4eee |
child 1072 | a44c741ee5ef |
permissions | -rw-r--r-- |
828 | 1 |
" |
2 |
A custom code generation and refactoring support for Smalltalk/X |
|
3 |
Copyright (C) 2013-2015 Jakub Nesveda |
|
4 |
Copyright (C) 2013-now Jan Vrany |
|
5 |
||
6 |
This library is free software; you can redistribute it and/or |
|
7 |
modify it under the terms of the GNU Lesser General Public |
|
8 |
License as published by the Free Software Foundation; either |
|
9 |
version 2.1 of the License. |
|
10 |
||
11 |
This library is distributed in the hope that it will be useful, |
|
12 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
14 |
Lesser General Public License for more details. |
|
15 |
||
16 |
You should have received a copy of the GNU Lesser General Public |
|
17 |
License along with this library; if not, write to the Free Software |
|
18 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
19 |
" |
|
833
297eb38e4eee
Package jn:refactoring_custom renamed to stx:goodies/smallsense/refactoring_custom
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
830
diff
changeset
|
20 |
"{ Package: 'stx:goodies/smallsense/refactoring_custom' }" |
565
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
21 |
|
830
1a88f5e65fe2
Classes moved to namespace SmallSense
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
828
diff
changeset
|
22 |
"{ NameSpace: SmallSense }" |
803
95cdac772759
Fixed failing tests caused by new STX release
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
716
diff
changeset
|
23 |
|
636
a7f9fcc82017
rename CustomCodeGeneratorTestCaseCodeGenerator to CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator and change its implementation to the new naming
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
634
diff
changeset
|
24 |
CustomTestCaseCodeGenerator subclass:#CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator |
565
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
25 |
instanceVariableNames:'' |
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
26 |
classVariableNames:'' |
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
27 |
poolDictionaries:'' |
656
a95284467938
move all code generators to category Interface-Refactoring-Custom-Generators
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
646
diff
changeset
|
28 |
category:'Interface-Refactoring-Custom-Generators' |
565
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
29 |
! |
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
30 |
|
828 | 31 |
!CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator class methodsFor:'documentation'! |
32 |
||
33 |
copyright |
|
34 |
" |
|
35 |
A custom code generation and refactoring support for Smalltalk/X |
|
36 |
Copyright (C) 2013-2015 Jakub Nesveda |
|
37 |
Copyright (C) 2013-now Jan Vrany |
|
38 |
||
39 |
This library is free software; you can redistribute it and/or |
|
40 |
modify it under the terms of the GNU Lesser General Public |
|
41 |
License as published by the Free Software Foundation; either |
|
42 |
version 2.1 of the License. |
|
43 |
||
44 |
This library is distributed in the hope that it will be useful, |
|
45 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
46 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
47 |
Lesser General Public License for more details. |
|
48 |
||
49 |
You should have received a copy of the GNU Lesser General Public |
|
50 |
License along with this library; if not, write to the Free Software |
|
51 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
52 |
" |
|
53 |
! ! |
|
636
a7f9fcc82017
rename CustomCodeGeneratorTestCaseCodeGenerator to CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator and change its implementation to the new naming
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
634
diff
changeset
|
54 |
|
a7f9fcc82017
rename CustomCodeGeneratorTestCaseCodeGenerator to CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator and change its implementation to the new naming
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
634
diff
changeset
|
55 |
!CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator class methodsFor:'accessing-presentation'! |
565
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
56 |
|
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
57 |
description |
671
ad1e0393231a
Fixes in test case generators. Added generators for UI test cases.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
670
diff
changeset
|
58 |
^ 'Creates a new test case for custom code generator/refactoring' |
565
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
59 |
|
636
a7f9fcc82017
rename CustomCodeGeneratorTestCaseCodeGenerator to CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator and change its implementation to the new naming
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
634
diff
changeset
|
60 |
"Modified: / 23-08-2014 / 19:50:52 / Jakub Nesveda <nesvejak@fit.cvut.cz>" |
671
ad1e0393231a
Fixes in test case generators. Added generators for UI test cases.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
670
diff
changeset
|
61 |
"Modified: / 16-09-2014 / 11:33:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
565
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
62 |
! |
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
63 |
|
628
6f639016753b
Sort generators or refactorings by their group.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
592
diff
changeset
|
64 |
group |
6f639016753b
Sort generators or refactorings by their group.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
592
diff
changeset
|
65 |
"Returns a collection strings describing a group to which |
6f639016753b
Sort generators or refactorings by their group.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
592
diff
changeset
|
66 |
receiver belongs. A groups may be nested hence the array of |
6f639016753b
Sort generators or refactorings by their group.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
592
diff
changeset
|
67 |
strings. For example for subgroup 'Accessors' in group 'Generators' |
6f639016753b
Sort generators or refactorings by their group.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
592
diff
changeset
|
68 |
this method should return #('Generators' 'Accessors')." |
6f639016753b
Sort generators or refactorings by their group.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
592
diff
changeset
|
69 |
|
6f639016753b
Sort generators or refactorings by their group.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
592
diff
changeset
|
70 |
"/ By default return an empty array which means the item will appear |
6f639016753b
Sort generators or refactorings by their group.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
592
diff
changeset
|
71 |
"/ in top-level group. |
6f639016753b
Sort generators or refactorings by their group.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
592
diff
changeset
|
72 |
^ #('Generators') |
6f639016753b
Sort generators or refactorings by their group.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
592
diff
changeset
|
73 |
|
6f639016753b
Sort generators or refactorings by their group.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
592
diff
changeset
|
74 |
"Created: / 22-08-2014 / 18:50:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
6f639016753b
Sort generators or refactorings by their group.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
592
diff
changeset
|
75 |
! |
6f639016753b
Sort generators or refactorings by their group.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
592
diff
changeset
|
76 |
|
565
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
77 |
label |
628
6f639016753b
Sort generators or refactorings by their group.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
592
diff
changeset
|
78 |
^ 'New Code Generator Testcase' |
565
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
79 |
|
636
a7f9fcc82017
rename CustomCodeGeneratorTestCaseCodeGenerator to CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator and change its implementation to the new naming
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
634
diff
changeset
|
80 |
"Modified: / 23-08-2014 / 19:50:58 / Jakub Nesveda <nesvejak@fit.cvut.cz>" |
628
6f639016753b
Sort generators or refactorings by their group.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
592
diff
changeset
|
81 |
"Modified: / 22-08-2014 / 18:50:50 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
565
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
82 |
! ! |
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
83 |
|
670
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
84 |
!CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator class methodsFor:'queries'! |
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
85 |
|
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
86 |
availableInContext:aCustomContext |
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
87 |
| classes | |
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
88 |
|
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
89 |
classes := aCustomContext selectedClasses. |
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
90 |
^ classes notEmpty |
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
91 |
and:[ classes allSatisfy: [:e | e inheritsFrom: CustomCodeGeneratorOrRefactoring ] ]. |
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
92 |
|
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
93 |
"Created: / 15-09-2014 / 15:19:30 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
94 |
! ! |
565
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
95 |
|
670
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
96 |
!CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator methodsFor:'accessing - defaults'! |
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
97 |
|
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
98 |
defaultTestSuperName |
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
99 |
^ 'CustomCodeGeneratorOrRefactoringTestCase' |
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
100 |
|
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
101 |
"Created: / 16-09-2014 / 10:32:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
102 |
! ! |
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
103 |
|
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
104 |
!CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator methodsFor:'executing - private'! |
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
105 |
|
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
106 |
generateTestCaseCodeFor:aTestClass forClassUnderTest:aClass |
806
c1983320e2cf
Fixed package set in test case generators
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
803
diff
changeset
|
107 |
| source className package | |
565
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
108 |
|
670
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
109 |
super generateTestCaseCodeFor:aTestClass forClassUnderTest:aClass. |
592
25f7fff0dc9e
fix class name retrieving in test case code generator
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
591
diff
changeset
|
110 |
className := aClass theNonMetaClass name. |
565
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
111 |
|
806
c1983320e2cf
Fixed package set in test case generators
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
803
diff
changeset
|
112 |
package := PackageId noProjectID. |
c1983320e2cf
Fixed package set in test case generators
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
803
diff
changeset
|
113 |
samePackageAsTestedClass ifTrue: [ |
c1983320e2cf
Fixed package set in test case generators
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
803
diff
changeset
|
114 |
package := aClass package |
c1983320e2cf
Fixed package set in test case generators
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
803
diff
changeset
|
115 |
]. |
c1983320e2cf
Fixed package set in test case generators
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
803
diff
changeset
|
116 |
|
565
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
117 |
source := 'test_code_generated |
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
118 |
| expectedSource | |
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
119 |
|
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
120 |
expectedSource := ''instanceVariable |
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
121 |
^ instanceVariable''. |
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
122 |
|
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
123 |
self executeGeneratorInContext: #classWithInstanceVariable. |
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
124 |
self assertMethodSource: expectedSource atSelector: #instanceVariable'. |
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
125 |
|
689
488503cd3baa
fixes in TestCase code generators
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
688
diff
changeset
|
126 |
model createMethod |
565
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
127 |
class: aTestClass; |
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
128 |
|
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
129 |
protocol: 'tests'; |
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
130 |
source: source; |
806
c1983320e2cf
Fixed package set in test case generators
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
803
diff
changeset
|
131 |
package: package; |
689
488503cd3baa
fixes in TestCase code generators
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
688
diff
changeset
|
132 |
compile. |
565
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
133 |
|
689
488503cd3baa
fixes in TestCase code generators
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
688
diff
changeset
|
134 |
model createMethod |
716
5f873811da52
fix missing class when creating method in CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
689
diff
changeset
|
135 |
class: aTestClass; |
5f873811da52
fix missing class when creating method in CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
689
diff
changeset
|
136 |
|
565
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
137 |
protocol: 'accessing'; |
636
a7f9fcc82017
rename CustomCodeGeneratorTestCaseCodeGenerator to CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator and change its implementation to the new naming
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
634
diff
changeset
|
138 |
source: 'generatorOrRefactoring |
565
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
139 |
^ `className new'; |
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
140 |
replace: '`className' with: className asString; |
806
c1983320e2cf
Fixed package set in test case generators
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
803
diff
changeset
|
141 |
package: package; |
689
488503cd3baa
fixes in TestCase code generators
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
688
diff
changeset
|
142 |
compile |
565
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
143 |
|
670
f49ac58dd32c
Fixes / improvements in testcase generatoris, update to new API.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
656
diff
changeset
|
144 |
"Created: / 16-09-2014 / 10:40:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
806
c1983320e2cf
Fixed package set in test case generators
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
803
diff
changeset
|
145 |
"Modified: / 31-01-2015 / 18:39:38 / Jakub Nesveda <nesvejak@fit.cvut.cz>" |
565
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
146 |
! ! |
e80ce770e237
CustomTestCaseCodeGenerator made as abstract to support multiple implementations of TestCase generation
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
diff
changeset
|
147 |
|
636
a7f9fcc82017
rename CustomCodeGeneratorTestCaseCodeGenerator to CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator and change its implementation to the new naming
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
634
diff
changeset
|
148 |
!CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator class methodsFor:'documentation'! |
a7f9fcc82017
rename CustomCodeGeneratorTestCaseCodeGenerator to CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator and change its implementation to the new naming
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
634
diff
changeset
|
149 |
|
a7f9fcc82017
rename CustomCodeGeneratorTestCaseCodeGenerator to CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator and change its implementation to the new naming
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
634
diff
changeset
|
150 |
version_HG |
a7f9fcc82017
rename CustomCodeGeneratorTestCaseCodeGenerator to CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator and change its implementation to the new naming
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
634
diff
changeset
|
151 |
|
a7f9fcc82017
rename CustomCodeGeneratorTestCaseCodeGenerator to CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator and change its implementation to the new naming
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
634
diff
changeset
|
152 |
^ '$Changeset: <not expanded> $' |
a7f9fcc82017
rename CustomCodeGeneratorTestCaseCodeGenerator to CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator and change its implementation to the new naming
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
634
diff
changeset
|
153 |
! ! |
a7f9fcc82017
rename CustomCodeGeneratorTestCaseCodeGenerator to CustomCodeGeneratorOrRefactoringTestCaseCodeGenerator and change its implementation to the new naming
Jakub Nesveda <jakubnesveda@seznam.cz>
parents:
634
diff
changeset
|
154 |