artefaktur
software engineer &        architecture

 
 
 
 

class TestCase

Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::tools::aunit::TestCase Class Reference
[Classes, functions, macros for the ACDK unit test framework]

#include <TestUnit.h>

Inheritance diagram for acdk::tools::aunit::TestCase:

acdk::lang::Object acdk::tools::aunit::Test acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdk::tools::aunit::CfgScriptTestCase acdk::tools::aunit::ProcessTestCase acdk::tools::aunit::TestCaller< TestClass > acdk::tools::aunit::TestSuite acdk::tools::aunit::CfgScriptTestSuite acdk::tools::aunit::ProcessTestSuite tests::acdk::cfgscript::Props_Test tests::acdk::cfgscript::Script_Test tests::acdk::cfgscript::ScriptCom_Test tests::acdk::cfgscript::ScriptDebug_Test tests::acdk::cfgscript::ScriptStatements_Test tests::acdk::cfgscript::ShellExecutor_Test tests::acdk::io::BinaryDataReaderWriter_Test tests::acdk::io::BinaryObjectReaderWriter_Test tests::acdk::io::BufferedWriter_Test tests::acdk::io::Encoding_Test tests::acdk::io::File_Test tests::acdk::io::PrintWriter_Test tests::acdk::io::RandomAccessFile_Test tests::acdk::io::ReaderWriter_Test tests::acdk::io::RessourceFileImpl_Test tests::acdk::io::StreamTokenizer_Test tests::acdk::java::Basic_Test tests::acdk::java::JavaObject_Test tests::acdk::java::serialization::Basic_Test tests::acdk::lang::Character_Test tests::acdk::lang::ClassLoader_Test tests::acdk::lang::CmdLineParser_Test tests::acdk::lang::dmi::ClazzInfo_Test tests::acdk::lang::dmi::DmiObject_Test tests::acdk::lang::dmi::MetaObject_Test tests::acdk::lang::dmi::NotifyObjectEvent_Test tests::acdk::lang::dmi::Reference_Test tests::acdk::lang::dmi::ScriptVar_Test tests::acdk::lang::dmi::SharedOwning2_Test tests::acdk::lang::dmi::SharedOwning3_Test tests::acdk::lang::dmi::SharedOwning_Test tests::acdk::lang::dmi::StdDispatch_Test tests::acdk::lang::Double_Test tests::acdk::lang::ExtObject_Test tests::acdk::lang::Float_Test tests::acdk::lang::Integer_Test tests::acdk::lang::Number_Test tests::acdk::lang::ObjectArray_Test tests::acdk::lang::ObjectBase_Test tests::acdk::lang::reflect::Constructor_Test tests::acdk::lang::reflect::Enumeration_Test tests::acdk::lang::reflect::Field_Test tests::acdk::lang::reflect::Method_Test tests::acdk::lang::reflect::Unit_Test tests::acdk::lang::Runtime_Test tests::acdk::lang::String2_Test tests::acdk::lang::String_Test tests::acdk::lang::StringBuffer_Test tests::acdk::lang::sys::BackTrace_Test tests::acdk::lang::sys::core_hashmap_Test tests::acdk::lang::sys::core_newvector_Test tests::acdk::lang::sys::core_specific_Test tests::acdk::lang::sys::StackAlloc_Test tests::acdk::lang::System_Test tests::acdk::lang::Thread_Test tests::acdk::lang::ThreadLocal_Test tests::acdk::lang::Throwable_Test tests::acdk::make::ShellExecuteTask_Test tests::acdk::net::DatagramSocket_Test tests::acdk::net::ftp::FTPClient_Test tests::acdk::net::ftp::FTPFileSystem_Test tests::acdk::net::InetAddress_Test tests::acdk::net::TcpTimeout_Test tests::acdk::net::TransReaderWriter_Test tests::acdk::net::URL_Test tests::acdk::python::ComObject_Test tests::acdk::python::Interpreter_Test tests::acdk::text::DateFormat_Test tests::acdk::text::DecimalFormat_Test tests::acdk::text::DecimalFormatSymbols_Test tests::acdk::text::RegExp_Test tests::acdk::text::Template_Test tests::acdk::tools::mc::Attributes_Test tests::acdk::tools::mc::Misc_Test tests::acdk::tools::mc::SetDispatchAttribute_Test tests::acdk::util::Container_Test tests::acdk::util::Date_Test tests::acdk::util::HelloWorldClass_Test tests::acdk::util::IdentityHashMap_Test tests::acdk::util::Locale_Test tests::acdk::util::logging::Logging_Test tests::acdk::util::logging::RollingFileAppender_Test tests::acdk::util::logging::TransactionConsumer_Test tests::acdk::util::Properties_Test tests::acdk::util::ResourceBundle_Test tests::acdk::util::StringTokenzier_Test tests::acdk::util::TContainer_Test tests::acdk::util::WeakHashMap_Test tests::acdk::vfile::tar::InflaterReader_Test tests::acdk::vfile::tar::TarFile_Test tests::acdk::vfile::zip::ZipFile_Test tests::acdk::wx::DragNDrop_Test tests::acdk::wx::Drawing_Test tests::acdk::wx::ide::StyledTextCtrl_Test tests::acdk::wx::TextCtrl_Test tests::acdk::xml::sax::LibXML_Test tests::acdkx::com::ActiveScript_Test tests::acdkx::com::ComObject_Test tests::acdkx::com::CreateTypeInfo_Test tests::acdkx::com::CreateTypeLib_Test tests::acdkx::com::DmiObject_Test tests::acdkx::net::ssl::SSLConnection_Test tests::acdkx::orb::AcdkObject_Test tests::acdkx::orb::Basic_Test tests::acdkx::orb::DIIAcdkObject_Test tests::acdkx::rdmi::Basic_Test List of all members.

Detailed Description

A single test case.


Public Member Functions

 TestCase (IN(RString) name)
virtual ~TestCase ()
virtual void run (IN(RTestResult) result)
virtual void runTest ()=0
virtual int testCount ()
RString name ()
RString getName ()
 returns the ClassName for this object by default

RString toString ()
 return a string representation of this object Object::toString() return getName() by default

virtual void setUp ()
 before starting a test setUp() will be called

virtual void tearDown ()
 after executing a test tearDown() will be called

void assertImplementation (bool condition, IN(RString) str, int linenum, IN(RString) fileName)
 check test condition.

void assertImplementation (bool condition, const char *str, int linenum, const char *fileName)
 native C++ implementation for checking test condition.


Static Public Attributes

bool NoSuccessTestLogging
 This can be set to true if no side effect by logging successfull testAsserts.

bool TestInBatchMode
 if this value is set all test, which needs interaction should be skipped

TestCaseactiveTest

Private Attributes

RString _name
RTestResult _activeResult
 will only used in running test


Constructor & Destructor Documentation

acdk::tools::aunit::TestCase::TestCase IN(RString name  )  [inline]
 

virtual acdk::tools::aunit::TestCase::~TestCase  )  [inline, virtual]
 


Member Function Documentation

void acdk::tools::aunit::TestCase::assertImplementation bool  condition,
const char *  str,
int  linenum,
const char *  fileName
 

native C++ implementation for checking test condition.

Mainly used via testAssert or testAssertComment macros

void acdk::tools::aunit::TestCase::assertImplementation bool  condition,
IN(RString str,
int  linenum,
IN(RString fileName
 

check test condition.

RString acdk::tools::aunit::TestCase::getName  )  [inline, virtual]
 

returns the ClassName for this object by default

Reimplemented from acdk::lang::Object.

Reimplemented in acdk::tools::aunit::CfgScriptTestCase, acdk::tools::aunit::CfgScriptTestSuite, acdk::tools::aunit::ProcessTestSuite, acdk::tools::aunit::ProcessTestCase, acdk::tools::aunit::TestSuite, and acdk::tools::aunit::TestCaller< TestClass >.

RString acdk::tools::aunit::TestCase::name  )  [inline]
 

virtual void acdk::tools::aunit::TestCase::run IN(RTestResult result  )  [virtual]
 

Implements acdk::tools::aunit::Test.

Reimplemented in acdk::tools::aunit::ProcessTestSuite, acdk::tools::aunit::ProcessTestCase, and acdk::tools::aunit::TestSuite.

virtual void acdk::tools::aunit::TestCase::runTest  )  [pure virtual]
 

Implements acdk::tools::aunit::Test.

Implemented in acdk::tools::aunit::CfgScriptTestCase, acdk::tools::aunit::ProcessTestSuite, acdk::tools::aunit::ProcessTestCase, acdk::tools::aunit::TestSuite, and acdk::tools::aunit::TestCaller< TestClass >.

virtual void acdk::tools::aunit::TestCase::setUp  )  [inline, virtual]
 

before starting a test setUp() will be called

Reimplemented in acdk::tools::aunit::TestCaller< TestClass >.

virtual void acdk::tools::aunit::TestCase::tearDown  )  [inline, virtual]
 

after executing a test tearDown() will be called

Reimplemented in acdk::tools::aunit::TestCaller< TestClass >.

virtual int acdk::tools::aunit::TestCase::testCount  )  [inline, virtual]
 

Implements acdk::tools::aunit::Test.

Reimplemented in acdk::tools::aunit::TestSuite.

RString acdk::tools::aunit::TestCase::toString  )  [inline, virtual]
 

return a string representation of this object Object::toString() return getName() by default

Reimplemented from acdk::lang::Object.

Reimplemented in acdk::tools::aunit::ProcessTestSuite, acdk::tools::aunit::ProcessTestCase, acdk::tools::aunit::TestSuite, and acdk::tools::aunit::TestCaller< TestClass >.


Member Data Documentation

RTestResult acdk::tools::aunit::TestCase::_activeResult [private]
 

will only used in running test

RString acdk::tools::aunit::TestCase::_name [private]
 

TestCase* acdk::tools::aunit::TestCase::activeTest [static]
 

bool acdk::tools::aunit::TestCase::NoSuccessTestLogging [static]
 

This can be set to true if no side effect by logging successfull testAsserts.

bool acdk::tools::aunit::TestCase::TestInBatchMode [static]
 

if this value is set all test, which needs interaction should be skipped

 
Last modified 2005-05-08 18:33 by SYSTEM By Artefaktur, Ing. Bureau Kommer