|
||||||
| SUMMARY: CHILDREN | PARAMETER | INSTPROC | INSTFILTER | INSTFORWARD | DETAIL: | INSTPROC | |||||
::xotcl::Object
|
+--::xox::Node
|
+--::xounit::Test
|
+--::xounit::Assert
|
+--::xounit::TestCase
| Variables | |||
| Name | Default Value | Class | Comment |
currentTestMethod |
::xounit::TestCase | name of the currently running test method. |
|
nodeName |
::xox::Node | ||
result |
::xounit::TestCase | the result for the current run. |
|
| Methods | |
| Name | Comment |
testCatchExceptionWithTclCatch {}
| |
testGetTheMessageFromTheException {}
| |
testThrowExceptionWithTclError {}
| |
| Methods from ::xotcl::Object |
#, ., ?, ?code, ?methods, ?object, abstract, copy, coverageFilter, defaultmethod, extractConfigureArg, filterappend, garbageCollect, get#, getClean#, hasclass, init, methodTag, mixinappend, move, profileFilter, self, setParameterDefaults, shell, tclcmd, traceFilter,
|
| Instproc Detail |
::xoexception::test::TestException instproc testCatchExceptionWithTclCatch {} {
catch {
error [ ::xoexception::Error new ]
puts "This should not be executed! TestException testCatchExceptionWithTclCatch Failed!"
exit
} result
::xotcl::my assertTrue [ info exists result ] "Result should be the Error"
}
::xoexception::test::TestException instproc testGetTheMessageFromTheException {} {
catch {
error [ ::xoexception::Error new "An Error message" ]
puts "This should not be executed! TestException testGetTheMessageFromTheException Failed!"
exit
} result
::xotcl::my assertTrue [ info exists result ] "Result should be the Error"
::xotcl::my assertEquals [ $result message ] "An Error message"
}
::xoexception::test::TestException instproc testThrowExceptionWithTclError {} {
catch {
error [ ::xoexception::Error new ]
puts "This should not be executed! TestException testThrowExceptionWithTclError Failed!"
exit
}
}