source: src/Patterns/unittests/RegistryUnitTest.hpp@ b09709

Last change on this file since b09709 was c7ac70, checked in by Frederik Heber <heber@…>, 14 years ago

FIX: Forgot to add Registry<>::cleanup() to CONSTRUCT_....

  • added unit test whether cleanup is working.
  • Property mode set to 100644
File size: 757 bytes
RevLine 
[a80f419]1/*
2 * RegistryUnitTest.hpp
3 *
4 * Created on: Oct 27, 2010
5 * Author: heber
6 */
7
8#ifndef REGISTRYUNITTEST_HPP_
9#define REGISTRYUNITTEST_HPP_
10
[70672e3]11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
[a80f419]16#include <cppunit/extensions/HelperMacros.h>
17
[fe056c]18class RegistryStub;
[a80f419]19
20/********************************************** Test classes **************************************/
21
22class RegistryTest : public CppUnit::TestFixture
23{
24 CPPUNIT_TEST_SUITE( RegistryTest) ;
25 CPPUNIT_TEST ( InOutCheck );
[c7ac70]26 CPPUNIT_TEST ( cleanupCheck );
[a80f419]27 CPPUNIT_TEST_SUITE_END();
28
29public:
30 void setUp();
31 void tearDown();
32 void InOutCheck();
[c7ac70]33 void cleanupCheck();
[a80f419]34
35private:
[fe056c]36 RegistryStub* registry;
[a80f419]37};
38
39#endif /* REGISTRYUNITTEST_HPP_ */
Note: See TracBrowser for help on using the repository browser.