Back to index

salome-med  6.5.0
Public Member Functions | Private Member Functions | Private Attributes
TestBogusClass Class Reference

Class used to figure out CppUnit : not very useful. More...

#include <CppUnitTest.hxx>

Inheritance diagram for TestBogusClass:
Inheritance graph
[legend]
Collaboration diagram for TestBogusClass:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void setUp ()
void tearDown ()
void test1 ()
void test2 ()

Private Member Functions

 CPPUNIT_TEST_SUITE (TestBogusClass)
 CPPUNIT_TEST (test1)
 CPPUNIT_TEST (test2)
 CPPUNIT_TEST_SUITE_END ()

Private Attributes

BogusClassobj

Detailed Description

Class used to figure out CppUnit : not very useful.

Definition at line 44 of file CppUnitTest.hxx.


Member Function Documentation

void TestBogusClass::setUp ( ) [inline]

Definition at line 53 of file CppUnitTest.hxx.

               {
    obj = new BogusClass(3.14);
  }
void TestBogusClass::tearDown ( ) [inline]

Definition at line 57 of file CppUnitTest.hxx.

                  {
    delete obj;
  }
void TestBogusClass::test1 ( ) [inline]

Definition at line 61 of file CppUnitTest.hxx.

               {
    // test something
    CPPUNIT_ASSERT(obj->x == 3.14);
    CPPUNIT_ASSERT(obj->getX() == obj->x);
  }

Here is the call graph for this function:

void TestBogusClass::test2 ( ) [inline]

Definition at line 67 of file CppUnitTest.hxx.

               {
    // test something else
    obj->x += 2.6;
    CPPUNIT_ASSERT(obj->getX() > 3.14);
  }

Here is the call graph for this function:


Member Data Documentation

Definition at line 74 of file CppUnitTest.hxx.


The documentation for this class was generated from the following file: