TestFailure.st
author Claus Gittinger <cg@exept.de>
Thu, 28 Mar 2019 13:35:41 +0100
changeset 740 7f2cc93c7a75
parent 651 81ed51d0c324
permissions -rw-r--r--
#DOCUMENTATION by cg class: TestSuite comment/format in: #run:beforeEachDo:afterEachDo: #run:beforeEachDo:afterEachDo:resetResources: #run:beforeEachDo:afterEachDo:resetResources:debug:

"{ Package: 'stx:goodies/sunit' }"

"{ NameSpace: Smalltalk }"

Exception subclass:#TestFailure
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'SUnit-Preload'
!

!TestFailure class methodsFor:'documentation'!

documentation
"
    'TestFailure is raised when the boolean parameter of an assert: ... or deny: ... call is the opposite of what the assertion claims.


"
! !

!TestFailure methodsFor:'Camp Smalltalk'!

sunitAnnounce: aTestCase toResult: aTestResult
        aTestResult addFailure: aTestCase detail: self.
        self sunitExitWith: false.

    "Modified: / 03-08-2011 / 17:33:14 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!TestFailure methodsFor:'handling'!

handleFailureWith:something
    "non-resumable test failure. Abort the test suite"

    ^ self returnWith:something
! !

!TestFailure class methodsFor:'documentation'!

version
    ^ '$Header$'
!

version_CVS
    ^ '$Header$'
!

version_SVN
    ^ '$Id$'
! !