/
jiteman
/
jsd-foreign-libreoffice-cppunit
Обзор
Документация
Войти
/
jiteman
/
jsd-foreign-libreoffice-cppunit
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
examples/cppunittest/ExceptionTestCaseDecoratorTest.h
61 строка
2 KB
jiteman
initial commit has been done
14 апр 2024, 15:49
14 апр 2024, 15:49
4c53812
Код
Авторство
О чём код?
// ////////////////////////////////////////////////////////////////////////// // Header file ExceptionTestCaseDecoratorTest.h for class ExceptionTestCaseDecoratorTest // (c)Copyright 2000, Baptiste Lepilleur. // Created: 2002/08/03 // ////////////////////////////////////////////////////////////////////////// #ifndef EXCEPTIONTESTCASEDECORATORTEST_H #define EXCEPTIONTESTCASEDECORATORTEST_H #include <cppunit/extensions/HelperMacros.h> #include <cppunit/TestResult.h> #include "FailureException.h" #include "MockTestCase.h" #include "MockTestListener.h" /// Unit tests for ExceptionTestCaseDecoratorTest class ExceptionTestCaseDecoratorTest : public CPPUNIT_NS::TestFixture { CPPUNIT_TEST_SUITE( ExceptionTestCaseDecoratorTest ); CPPUNIT_TEST( testNoExceptionThrownFailed ); CPPUNIT_TEST( testExceptionThrownPass ); CPPUNIT_TEST_SUITE_END(); public: /*! Constructs a ExceptionTestCaseDecoratorTest object. */ ExceptionTestCaseDecoratorTest(); /// Destructor. virtual ~ExceptionTestCaseDecoratorTest(); void setUp(); void tearDown(); void testNoExceptionThrownFailed(); void testExceptionThrownPass(); private: /// Prevents the use of the copy constructor. ExceptionTestCaseDecoratorTest( const ExceptionTestCaseDecoratorTest &other ); /// Prevents the use of the copy operator. void operator =( const ExceptionTestCaseDecoratorTest &other ); private: typedef CPPUNIT_NS::ExceptionTestCaseDecorator<FailureException> FailureExceptionTestCase; CPPUNIT_NS::TestResult *m_result; MockTestListener *m_testListener; MockTestCase *m_test; FailureExceptionTestCase *m_decorator; }; // Inlines methods for ExceptionTestCaseDecoratorTest: // --------------------------------------------------- #endif // EXCEPTIONTESTCASEDECORATORTEST_H