Version: 8.3.0
UtilsTest Class Reference

#include <UtilsTest.hxx>

Inheritance diagram for UtilsTest:

Public Member Functions

void setUp ()
 
void tearDown ()
 
void testSALOME_ExceptionThrow ()
 Check basic SALOME_exception mecanism. More...
 
void testSALOME_ExceptionMessage ()
 Check message on catch. More...
 

Private Member Functions

 CPPUNIT_TEST_SUITE (UtilsTest)
 
 CPPUNIT_TEST (testSALOME_ExceptionThrow)
 
 CPPUNIT_TEST (testSALOME_ExceptionMessage)
 
 CPPUNIT_TEST_SUITE_END ()
 
std::string _getTraceFileName ()
 Set Trace mecanism. More...
 

Member Function Documentation

std::string UtilsTest::_getTraceFileName ( )
private

Set Trace mecanism.

  • delete preexisting trace classes if any
  • set trace on file

References Kernel_Utils::GetTmpDir().

Referenced by setUp().

UtilsTest::CPPUNIT_TEST ( testSALOME_ExceptionThrow  )
private
UtilsTest::CPPUNIT_TEST ( testSALOME_ExceptionMessage  )
private
UtilsTest::CPPUNIT_TEST_SUITE ( UtilsTest  )
private
UtilsTest::CPPUNIT_TEST_SUITE_END ( )
private
void UtilsTest::tearDown ( )
void UtilsTest::testSALOME_ExceptionMessage ( )

Check message on catch.

References EXAMPLE_EXCEPTION_MESSAGE, and SALOME_Exception::what().

void UtilsTest::testSALOME_ExceptionThrow ( )

Check basic SALOME_exception mecanism.

References genExcept().