author | Claus Gittinger <cg@exept.de> |
Fri, 08 May 2015 12:28:56 +0200 | |
changeset 610 | 756214d7dcca |
parent 304 | 08842173015f |
child 613 | 5a546630cfcf |
child 651 | 81ed51d0c324 |
permissions | -rw-r--r-- |
0 | 1 |
"{ Package: 'stx:goodies/sunit' }" |
2 |
||
3 |
Exception subclass:#TestFailure |
|
4 |
instanceVariableNames:'' |
|
5 |
classVariableNames:'' |
|
6 |
poolDictionaries:'' |
|
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
0
diff
changeset
|
7 |
category:'SUnit-Preload' |
0 | 8 |
! |
9 |
||
222 | 10 |
!TestFailure class methodsFor:'documentation'! |
11 |
||
12 |
documentation |
|
13 |
" |
|
14 |
'TestFailure is raised when the boolean parameter of an assert: ... or deny: ... call is the opposite of what the assertion claims. |
|
15 |
||
16 |
||
17 |
" |
|
18 |
! ! |
|
19 |
||
304 | 20 |
!TestFailure class methodsFor:'others'! |
21 |
||
22 |
version_CVS |
|
23 |
^ '$Header: /cvs/stx/stx/goodies/sunit/TestFailure.st,v 1.7 2011-08-03 16:44:53 vrany Exp $' |
|
24 |
! ! |
|
25 |
||
222 | 26 |
!TestFailure methodsFor:'Camp Smalltalk'! |
27 |
||
28 |
sunitAnnounce: aTestCase toResult: aTestResult |
|
304 | 29 |
aTestResult addFailure: aTestCase detail: self. |
30 |
self sunitExitWith: false. |
|
31 |
||
32 |
"Modified: / 03-08-2011 / 17:33:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
222 | 33 |
! ! |
14 | 34 |
|
104 | 35 |
!TestFailure methodsFor:'handling'! |
36 |
||
37 |
handleFailureWith:something |
|
38 |
"non-resumable test failure. Abort the test suite" |
|
39 |
||
40 |
^ self returnWith:something |
|
41 |
! ! |
|
42 |
||
14 | 43 |
!TestFailure class methodsFor:'documentation'! |
44 |
||
45 |
version |
|
304 | 46 |
^ '$Header: /cvs/stx/stx/goodies/sunit/TestFailure.st,v 1.7 2011-08-03 16:44:53 vrany Exp $' |
222 | 47 |
! |
48 |
||
49 |
version_SVN |
|
50 |
^ '§Id: TestFailure.st 204 2010-09-11 15:21:51Z vranyj1 §' |
|
14 | 51 |
! ! |