|
Last change
on this file since d2023c was 0fce81, checked in by Frederik Heber <heber@…>, 15 years ago |
|
Moved unittests to Helpers/unittests, split off TestRunner into new unittests.
- Unit tests should reside in a subdir of where the components to test reside
in.
- everything common to all unit tests resides in a specific unittests subdir of
the src folder.
- for now, SUBDIRS directive for Helpers/unittests and Patterns/unittests
resides in ./ and not in src/Makefile.am to assure that libCodePatterns is
compiled before. We need to re-structure the unit tests to not relie in the
lib itself anymore but just on components and stubs.
|
-
Property mode
set to
100644
|
|
File size:
602 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * AssertUnitTest.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Feb 3, 2011
|
|---|
| 5 | * Author: heber
|
|---|
| 6 | */
|
|---|
| 7 | #ifndef ASSERTTEST_HPP_
|
|---|
| 8 | #define ASSERTTEST_HPP_
|
|---|
| 9 |
|
|---|
| 10 | // include config.h
|
|---|
| 11 | #ifdef HAVE_CONFIG_H
|
|---|
| 12 | #include <config.h>
|
|---|
| 13 | #endif
|
|---|
| 14 |
|
|---|
| 15 | #include <cppunit/extensions/HelperMacros.h>
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 | /********************************************** Test classes **************************************/
|
|---|
| 19 |
|
|---|
| 20 | class AssertTest : public CppUnit::TestFixture
|
|---|
| 21 | {
|
|---|
| 22 | CPPUNIT_TEST_SUITE( AssertTest) ;
|
|---|
| 23 | CPPUNIT_TEST ( ThrowTest );
|
|---|
| 24 | CPPUNIT_TEST_SUITE_END();
|
|---|
| 25 |
|
|---|
| 26 | public:
|
|---|
| 27 | void setUp();
|
|---|
| 28 | void tearDown();
|
|---|
| 29 |
|
|---|
| 30 | void ThrowTest();
|
|---|
| 31 | };
|
|---|
| 32 |
|
|---|
| 33 | #endif /* ASSERTTEST_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.