author | Claus Gittinger <cg@exept.de> |
Fri, 01 Nov 2019 13:44:29 +0100 | |
branch | cvs_MAIN |
changeset 3973 | ee0b2d717637 |
parent 3412 | df11bb428463 |
child 3558 | b343cb512f3b |
permissions | -rw-r--r-- |
749 | 1 |
" |
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3025
diff
changeset
|
2 |
COPYRIGHT (c) 1996-2015 by Claus Gittinger |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
3 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
4 |
New code and modifications done at SWING Research Group [1]: |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
5 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3025
diff
changeset
|
6 |
COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko |
749 | 7 |
SWING Research Group, Czech Technical University in Prague |
8 |
||
9 |
This software is furnished under a license and may be used |
|
10 |
only in accordance with the terms of that license and with the |
|
11 |
inclusion of the above copyright notice. This software may not |
|
12 |
be provided or otherwise made available to, or used by, any |
|
13 |
other person. No title to or ownership of the software is |
|
14 |
hereby transferred. |
|
15 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
16 |
[1] Code written at SWING Research Group contains a signature |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
17 |
of one of the above copright owners. For exact set of such code, |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
18 |
see the differences between this version and version stx:libjava |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
19 |
as of 1.9.2010 |
749 | 20 |
" |
21 |
"{ Package: 'stx:libjava' }" |
|
22 |
||
3330
b14c58b2876c
Oops, moved stray reloading-related methods from stx:libjava/experiments to stx:libjava.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
23 |
"{ NameSpace: Smalltalk }" |
b14c58b2876c
Oops, moved stray reloading-related methods from stx:libjava/experiments to stx:libjava.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
24 |
|
749 | 25 |
JavaTestCaseProxy subclass:#JUnitTestCaseProxy |
26 |
instanceVariableNames:'' |
|
27 |
classVariableNames:'' |
|
28 |
poolDictionaries:'' |
|
29 |
category:'Languages-Java-Tests-Proxies' |
|
30 |
! |
|
31 |
||
32 |
!JUnitTestCaseProxy class methodsFor:'documentation'! |
|
33 |
||
34 |
copyright |
|
35 |
" |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3025
diff
changeset
|
36 |
COPYRIGHT (c) 1996-2015 by Claus Gittinger |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
37 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
38 |
New code and modifications done at SWING Research Group [1]: |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
39 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3025
diff
changeset
|
40 |
COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko |
749 | 41 |
SWING Research Group, Czech Technical University in Prague |
42 |
||
43 |
This software is furnished under a license and may be used |
|
44 |
only in accordance with the terms of that license and with the |
|
45 |
inclusion of the above copyright notice. This software may not |
|
46 |
be provided or otherwise made available to, or used by, any |
|
47 |
other person. No title to or ownership of the software is |
|
48 |
hereby transferred. |
|
49 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
50 |
[1] Code written at SWING Research Group contains a signature |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
51 |
of one of the above copright owners. For exact set of such code, |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
52 |
see the differences between this version and version stx:libjava |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
53 |
as of 1.9.2010 |
749 | 54 |
|
55 |
" |
|
56 |
! ! |
|
57 |
||
58 |
!JUnitTestCaseProxy class methodsFor:'initialization'! |
|
59 |
||
60 |
initialize |
|
61 |
||
62 |
TestCases := Dictionary new. |
|
63 |
||
64 |
"Created: / 01-03-2011 / 10:43:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
65 |
! ! |
|
66 |
||
67 |
!JUnitTestCaseProxy class methodsFor:'accessing'! |
|
68 |
||
69 |
lookupHierarchyRoot |
|
70 |
||
71 |
^JUnitTestCaseProxy |
|
72 |
||
73 |
"Created: / 01-03-2011 / 11:41:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
74 |
"Modified: / 01-03-2011 / 14:54:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
75 |
! ! |
|
76 |
||
77 |
!JUnitTestCaseProxy class methodsFor:'private'! |
|
78 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
79 |
isTestSelector: selector |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
80 |
| javaClass | |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
81 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
82 |
self == JUnitTestCaseProxy ifTrue:[ ^ #() ]. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
83 |
javaClass := self javaClass. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
84 |
(javaClass includesBehavior:(JavaVM classForName:'junit.framework.TestCase')) |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
85 |
ifTrue:[ ^ selector startsWith:'test' ]. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
86 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
87 |
self testSelectors includes: selector. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
88 |
" |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
89 |
(JUnitTestCase for: JAVA::stx::libjava::tests::junit::JUnit3Tests) |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
90 |
testSelectors" |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
91 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
92 |
"Created: / 17-04-2012 / 22:48:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
93 |
! |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
94 |
|
749 | 95 |
testSelectors |
2919
d4ef0fe45599
Fix in JUnitTestCaseProxy>>#testSelectors.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2841
diff
changeset
|
96 |
| javaClass testMethods ignoredMethods | |
749 | 97 |
|
98 |
self == JUnitTestCaseProxy ifTrue:[ ^ #() ]. |
|
99 |
javaClass := self javaClass. |
|
2919
d4ef0fe45599
Fix in JUnitTestCaseProxy>>#testSelectors.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2841
diff
changeset
|
100 |
|
d4ef0fe45599
Fix in JUnitTestCaseProxy>>#testSelectors.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2841
diff
changeset
|
101 |
"/ Old JUnit 3.x style... |
d4ef0fe45599
Fix in JUnitTestCaseProxy>>#testSelectors.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2841
diff
changeset
|
102 |
(javaClass includesBehavior:(JavaVM classForName:'junit.framework.TestCase')) ifTrue:[ |
d4ef0fe45599
Fix in JUnitTestCaseProxy>>#testSelectors.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2841
diff
changeset
|
103 |
^ javaClass selectors select:[:sel | sel startsWith:'test' ]. |
d4ef0fe45599
Fix in JUnitTestCaseProxy>>#testSelectors.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2841
diff
changeset
|
104 |
]. |
749 | 105 |
|
2919
d4ef0fe45599
Fix in JUnitTestCaseProxy>>#testSelectors.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2841
diff
changeset
|
106 |
"/ New JUnit 4.x style |
d4ef0fe45599
Fix in JUnitTestCaseProxy>>#testSelectors.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2841
diff
changeset
|
107 |
testMethods := (javaClass selectMethodsAnnotatedWith: 'Lorg/junit/Test;' "Has to be type name!!!!!!"). |
d4ef0fe45599
Fix in JUnitTestCaseProxy>>#testSelectors.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2841
diff
changeset
|
108 |
ignoredMethods := (javaClass selectMethodsAnnotatedWith: 'Lorg/junit/Ignore;' "Has to be type name!!!!!!"). |
d4ef0fe45599
Fix in JUnitTestCaseProxy>>#testSelectors.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2841
diff
changeset
|
109 |
|
d4ef0fe45599
Fix in JUnitTestCaseProxy>>#testSelectors.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2841
diff
changeset
|
110 |
^ ( testMethods \ ignoredMethods ) collect:[:m | m selector ]. |
d4ef0fe45599
Fix in JUnitTestCaseProxy>>#testSelectors.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2841
diff
changeset
|
111 |
|
749 | 112 |
|
113 |
" |
|
114 |
(JUnitTestCase for: JAVA::stx::libjava::tests::junit::JUnit3Tests) |
|
115 |
testSelectors" |
|
116 |
||
117 |
"Created: / 01-03-2011 / 10:49:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
118 |
"Modified: / 03-03-2011 / 00:34:39 / Marcel Hlopko <hlopik@gmail.com>" |
|
2919
d4ef0fe45599
Fix in JUnitTestCaseProxy>>#testSelectors.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2841
diff
changeset
|
119 |
"Modified: / 14-11-2013 / 11:59:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 120 |
! ! |
121 |
||
122 |
!JUnitTestCaseProxy class methodsFor:'subclass creation'! |
|
123 |
||
124 |
for:javaClass |
|
125 |
"Answers a new (anonymous) testcase proxy for |
|
126 |
given javaClass" |
|
127 |
||
128 |
self assert:javaClass isJavaClass description:'Not a java class'. |
|
129 |
self assert:javaClass isTestCaseLike |
|
130 |
description:'Not a testcase-like class'. |
|
2841
6fa1bcf9c997
JavaClass>>#name vs. #binaryName refactoring
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
131 |
^self forClassNamed: javaClass binaryName |
749 | 132 |
|
133 |
"Created: / 01-03-2011 / 10:30:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
134 |
"Modified: / 03-03-2011 / 00:20:49 / Marcel Hlopko <hlopik@gmail.com>" |
|
2841
6fa1bcf9c997
JavaClass>>#name vs. #binaryName refactoring
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
135 |
"Modified: / 08-10-2013 / 22:28:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 136 |
! ! |
137 |
||
138 |
!JUnitTestCaseProxy methodsFor:'accessing'! |
|
139 |
||
140 |
nameForHDTestReport |
|
141 |
||
142 |
^self class javaClassName copyReplaceAll:$/ with: $. |
|
143 |
||
144 |
"Created: / 01-04-2011 / 16:10:34 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
145 |
||
146 |
! |
|
147 |
||
148 |
selectorForHDTestReport |
|
149 |
||
150 |
^testSelector upTo:$( |
|
151 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
152 |
! |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
153 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
154 |
shouldSkip |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
155 |
"Returns true, if this testcase should be skipped when a testsuite is run. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
156 |
This inly a hint, a test runner is not obliged to respect return value. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
157 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
158 |
Currently, the only user is stx/goodies/builder/reports" |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
159 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
160 |
| method | |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
161 |
method := self javaClass lookupMethodFor: testSelector. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
162 |
^method notNil and:[(method annotations runtimeVisible includesKey: 'Lorg/junit/Ignore;')]. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
163 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
164 |
"Created: / 03-12-2012 / 22:02:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 165 |
! ! |
166 |
||
167 |
!JUnitTestCaseProxy methodsFor:'private'! |
|
168 |
||
169 |
performTest |
|
170 |
||
171 |
<resource: #skipInDebuggersWalkBack> |
|
172 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
173 |
| assertions | |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
174 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
175 |
assertions := SignalSet |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
176 |
with: (Java classForName:'java.lang.AssertionError') |
3025
e2137bf62524
Fix in JUnit/TestletTestCaseProxy.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2982
diff
changeset
|
177 |
with: (Java classForName:'junit.framework.AssertionFailedError'). |
e2137bf62524
Fix in JUnit/TestletTestCaseProxy.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2982
diff
changeset
|
178 |
|
e2137bf62524
Fix in JUnit/TestletTestCaseProxy.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2982
diff
changeset
|
179 |
|
e2137bf62524
Fix in JUnit/TestletTestCaseProxy.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2982
diff
changeset
|
180 |
"/ JavaVM unimplementedNativeMethodSignal is Signal, not exception. |
e2137bf62524
Fix in JUnit/TestletTestCaseProxy.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2982
diff
changeset
|
181 |
"/ Therefore it MUST be caught here!!!!!! |
749 | 182 |
[ |
3025
e2137bf62524
Fix in JUnit/TestletTestCaseProxy.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2982
diff
changeset
|
183 |
[ |
e2137bf62524
Fix in JUnit/TestletTestCaseProxy.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2982
diff
changeset
|
184 |
self javaClass new perform: testSelector sunitAsSymbol |
e2137bf62524
Fix in JUnit/TestletTestCaseProxy.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2982
diff
changeset
|
185 |
] on: assertions do: [:ex| |
e2137bf62524
Fix in JUnit/TestletTestCaseProxy.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2982
diff
changeset
|
186 |
"This is the tricky part. We have to auto-magically convert |
e2137bf62524
Fix in JUnit/TestletTestCaseProxy.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2982
diff
changeset
|
187 |
jUnit's AssertionFailedError to sUnits TestFailure's" |
e2137bf62524
Fix in JUnit/TestletTestCaseProxy.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2982
diff
changeset
|
188 |
TestResult failure sunitSignalWith: ex getMessage |
e2137bf62524
Fix in JUnit/TestletTestCaseProxy.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2982
diff
changeset
|
189 |
] |
e2137bf62524
Fix in JUnit/TestletTestCaseProxy.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2982
diff
changeset
|
190 |
] on: JavaVM unimplementedNativeMethodSignal do:[:ex| |
e2137bf62524
Fix in JUnit/TestletTestCaseProxy.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2982
diff
changeset
|
191 |
ex class sunitSignalWith: ex description |
749 | 192 |
] |
193 |
||
194 |
"Created: / 01-03-2011 / 14:50:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
3025
e2137bf62524
Fix in JUnit/TestletTestCaseProxy.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2982
diff
changeset
|
195 |
"Modified: / 12-02-2014 / 12:33:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 196 |
! ! |
197 |
||
198 |
!JUnitTestCaseProxy class methodsFor:'documentation'! |
|
199 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
200 |
version_CVS |
3412
df11bb428463
Merged with mercurial revision 4f3cc813be4 (8 changesets total)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3360
diff
changeset
|
201 |
^ '$Header: /cvs/stx/stx/libjava/JUnitTestCaseProxy.st,v 1.6 2015-03-20 12:07:59 vrany Exp $' |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
202 |
! |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
203 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
204 |
version_HG |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
205 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
206 |
^ '$Changeset: <not expanded> $' |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
207 |
! |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
208 |
|
749 | 209 |
version_SVN |
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
210 |
^ 'Id' |
749 | 211 |
! ! |
212 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2152
diff
changeset
|
213 |
|
2152 | 214 |
JUnitTestCaseProxy initialize! |