648
|
1 |
"
|
|
2 |
Copyright (c) 2007-2010 Jan Vrany
|
|
3 |
Copyright (c) 2009-2010 eXept Software AG
|
|
4 |
|
|
5 |
Permission is hereby granted, free of charge, to any person
|
|
6 |
obtaining a copy of this software and associated documentation
|
|
7 |
files (the 'Software'), to deal in the Software without
|
|
8 |
restriction, including without limitation the rights to use,
|
|
9 |
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10 |
copies of the Software, and to permit persons to whom the
|
|
11 |
Software is furnished to do so, subject to the following
|
|
12 |
conditions:
|
|
13 |
|
|
14 |
The above copyright notice and this permission notice shall be
|
|
15 |
included in all copies or substantial portions of the Software.
|
|
16 |
|
|
17 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
18 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
19 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
20 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
21 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
22 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
23 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
24 |
OTHER DEALINGS IN THE SOFTWARE.
|
|
25 |
"
|
|
26 |
"{ Package: 'stx:libsvn' }"
|
|
27 |
|
|
28 |
"{ NameSpace: SVN }"
|
|
29 |
|
|
30 |
PackageResource subclass:#PackageAResource
|
|
31 |
instanceVariableNames:''
|
|
32 |
classVariableNames:''
|
|
33 |
poolDictionaries:''
|
|
34 |
category:'SVN-Tests-Resources'
|
|
35 |
!
|
|
36 |
|
|
37 |
!PackageAResource class methodsFor:'documentation'!
|
|
38 |
|
|
39 |
copyright
|
|
40 |
"
|
|
41 |
Copyright (c) 2007-2010 Jan Vrany
|
|
42 |
Copyright (c) 2009-2010 eXept Software AG
|
|
43 |
|
|
44 |
Permission is hereby granted, free of charge, to any person
|
|
45 |
obtaining a copy of this software and associated documentation
|
|
46 |
files (the 'Software'), to deal in the Software without
|
|
47 |
restriction, including without limitation the rights to use,
|
|
48 |
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
49 |
copies of the Software, and to permit persons to whom the
|
|
50 |
Software is furnished to do so, subject to the following
|
|
51 |
conditions:
|
|
52 |
|
|
53 |
The above copyright notice and this permission notice shall be
|
|
54 |
included in all copies or substantial portions of the Software.
|
|
55 |
|
|
56 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
57 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
58 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
59 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
60 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
61 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
62 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
63 |
OTHER DEALINGS IN THE SOFTWARE.
|
|
64 |
|
|
65 |
"
|
|
66 |
! !
|
|
67 |
|
|
68 |
!PackageAResource methodsFor:'accessing'!
|
|
69 |
|
|
70 |
package
|
|
71 |
|
|
72 |
^#'stx:libsvn_mockA'
|
|
73 |
|
|
74 |
"Created: / 08-12-2009 / 22:33:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
75 |
! !
|
|
76 |
|
|
77 |
!PackageAResource methodsFor:'private'!
|
|
78 |
|
|
79 |
createMockA
|
|
80 |
|
|
81 |
| mockA |
|
|
82 |
mockA :=
|
|
83 |
Object subclass:#MockA
|
|
84 |
instanceVariableNames:'a'
|
|
85 |
classVariableNames:''
|
|
86 |
poolDictionaries:''
|
|
87 |
category:'mockpkg'.
|
|
88 |
mockA compile:'foo ^#foo' classified:#'mock methods'.
|
|
89 |
|
|
90 |
self setPackageOf: mockA to: self package
|
|
91 |
|
|
92 |
"Created: / 08-12-2009 / 22:36:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
93 |
!
|
|
94 |
|
|
95 |
createMockB
|
|
96 |
|
|
97 |
| mockB |
|
|
98 |
mockB :=
|
|
99 |
Object subclass:#MockB
|
|
100 |
instanceVariableNames:'b'
|
|
101 |
classVariableNames:''
|
|
102 |
poolDictionaries:''
|
|
103 |
category:'mockpkg'.
|
|
104 |
mockB compile:'bar:arg ^arg' classified:#'mock methods'.
|
|
105 |
mockB compile:'b ^b' classified:#'mock methods'.
|
|
106 |
mockB compile:'b:o b:=o' classified:#'mock methods'.
|
|
107 |
|
|
108 |
self setPackageOf: mockB to: self package
|
|
109 |
|
|
110 |
"Created: / 08-12-2009 / 22:37:33 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
111 |
! !
|
|
112 |
|
|
113 |
!PackageAResource methodsFor:'utilities'!
|
|
114 |
|
|
115 |
createMocks
|
|
116 |
self createMockA.
|
|
117 |
self createMockB.
|
|
118 |
!
|
|
119 |
|
|
120 |
createPackage
|
|
121 |
|
|
122 |
Class withoutUpdatingChangesDo:
|
|
123 |
[self createMocks.
|
|
124 |
LibraryDefinition newForPackage:self package]
|
|
125 |
|
|
126 |
"Created: / 08-12-2009 / 22:50:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
127 |
!
|
|
128 |
|
|
129 |
removePackage
|
|
130 |
Class
|
|
131 |
withoutUpdatingChangesDo:[
|
|
132 |
(Smalltalk allClassesInPackage:self package) do:[:class |
|
|
133 |
Smalltalk removeClass:class
|
|
134 |
]
|
|
135 |
]
|
|
136 |
|
|
137 |
"Created: / 08-12-2009 / 22:49:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
138 |
! !
|
|
139 |
|
|
140 |
!PackageAResource class methodsFor:'documentation'!
|
|
141 |
|
|
142 |
version
|
|
143 |
^ '$Header$'
|
|
144 |
!
|
|
145 |
|
|
146 |
version_CVS
|
|
147 |
^ '$Header$'
|
|
148 |
!
|
|
149 |
|
|
150 |
version_SVN
|
|
151 |
^ '§Id: SVN__PackageAResource.st 350 2011-07-07 18:42:56Z vranyj1 §'
|
|
152 |
! !
|