Google

template< typename FixtureT > class osgUtx::TestCase_

TestCase_ is a class template for a leaf TestCase, which allows TestFixture classes to be easily collected into the tree of tests, and have their public test methods called.

Inheritance:


Public Methods

[more] TestCase_( const std::string& sName, TestMethodPtr pTestMethod )
[more]virtual void run( const Context& ctx )

Protected Fields

[more]TestMethodPtr _pTestMethod

Protected Methods

[more]virtual ~TestCase_()


Inherited from TestCase:

Public Methods

ovirtual bool accept( Visitor& v )

Public Members

otypedef TestContext Context


Inherited from Test:

Public Methods

oconst std::string& name() const

Public Members

otypedef TestVisitor Visitor

Protected Fields

ostd::string _name


Inherited from Referenced:

Public Methods

oinline Referenced& operator = (Referenced&)
ostatic void setDeleteHandler(DeleteHandler* handler)
ostatic DeleteHandler* getDeleteHandler()
oinline void ref() const
oinline void unref_nodelete() const
oinline int referenceCount() const
oinline void unref() const

Protected Fields

omutable int _refCount


Documentation

TestCase_ is a class template for a leaf TestCase, which allows TestFixture classes to be easily collected into the tree of tests, and have their public test methods called. It is worth noting that, for a given TestCase_, an instance of the test fixture class will be constructed pior to the test method being called, and destructed afterwards. This prevents 'leakage' of information from one test case to the next.
o TestCase_( const std::string& sName, TestMethodPtr pTestMethod )

ovirtual void run( const Context& ctx )

ovirtual ~TestCase_()

oTestMethodPtr _pTestMethod


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.