1 " |
|
2 COPYRIGHT (c) 2006 by eXept Software AG |
|
3 All Rights Reserved |
|
4 |
|
5 This software is furnished under a license and may be used |
|
6 only in accordance with the terms of that license and with the |
|
7 inclusion of the above copyright notice. This software may not |
|
8 be provided or otherwise made available to, or used by, any |
|
9 other person. No title to or ownership of the software is |
|
10 hereby transferred. |
|
11 " |
|
12 "{ Package: 'stx:libbasic' }" |
|
13 |
|
14 TestCase subclass:#SelectorNamespacesTest |
|
15 instanceVariableNames:'' |
|
16 classVariableNames:'' |
|
17 poolDictionaries:'' |
|
18 category:'Kernel-Tests' |
|
19 ! |
|
20 |
|
21 !SelectorNamespacesTest class methodsFor:'documentation'! |
|
22 |
|
23 copyright |
|
24 " |
|
25 COPYRIGHT (c) 2006 by eXept Software AG |
|
26 All Rights Reserved |
|
27 |
|
28 This software is furnished under a license and may be used |
|
29 only in accordance with the terms of that license and with the |
|
30 inclusion of the above copyright notice. This software may not |
|
31 be provided or otherwise made available to, or used by, any |
|
32 other person. No title to or ownership of the software is |
|
33 hereby transferred. |
|
34 " |
|
35 ! ! |
|
36 |
|
37 !SelectorNamespacesTest methodsFor:'initialization & release'! |
|
38 |
|
39 tearDown |
|
40 |
|
41 (self class >> #m1) |
|
42 lookupObject: nil; |
|
43 setAnnotations: nil. |
|
44 (self class >> #call_m1) |
|
45 lookupObject: nil; |
|
46 setAnnotations: nil. |
|
47 |
|
48 "Created: / 20-05-2010 / 11:27:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
49 ! ! |
|
50 |
|
51 !SelectorNamespacesTest methodsFor:'methods'! |
|
52 |
|
53 call_m1 |
|
54 |
|
55 ^self m1 |
|
56 |
|
57 "Created: / 20-05-2010 / 11:25:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
58 ! |
|
59 |
|
60 m1 |
|
61 |
|
62 ^#m1 |
|
63 |
|
64 "Created: / 20-05-2010 / 11:25:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
65 ! ! |
|
66 |
|
67 !SelectorNamespacesTest methodsFor:'tests'! |
|
68 |
|
69 test_01a |
|
70 |
|
71 self assert: self m1 == #m1. |
|
72 self assert: self call_m1 == #m1. |
|
73 |
|
74 |
|
75 (self class >> #call_m1) nameSpace: (NameSpace name: #'SelectorNamespace'). |
|
76 |
|
77 self assert: self m1 == #m1. |
|
78 self assert: self call_m1 == #m1. |
|
79 |
|
80 (self class >> #m1) nameSpace: (NameSpace name: #'SelectorNamespace2'). |
|
81 |
|
82 self assert: self m1 == #m1. |
|
83 self should: [self call_m1 == #m1] raise: Object messageNotUnderstoodSignal. |
|
84 |
|
85 "Created: / 20-05-2010 / 11:28:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
86 ! ! |
|
87 |
|
88 !SelectorNamespacesTest class methodsFor:'documentation'! |
|
89 |
|
90 version_SVN |
|
91 ^ '$Id: SelectorNamespacesTest.st 10524 2010-05-20 13:35:23Z vranyj1 $' |
|
92 ! ! |
|