Candidate_v1.7.0
        stable
      
      
        
          | Last change
 on this file since 9171d8 was             e0b960, checked in by Frederik Heber <frederik.heber@…>, 8 years ago | 
        
          | 
Edges may be added and removed in BoostGraphCreator.
 TESTS: added unit test case on this.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.1 KB | 
      
      
| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | * BoostGraphCreatorUnitTest.hpp | 
|---|
| 3 | * | 
|---|
| 4 | *  Created on: May 19, 2017 | 
|---|
| 5 | *      Author: heber | 
|---|
| 6 | */ | 
|---|
| 7 |  | 
|---|
| 8 | #ifndef BOOSTGRAPHCREATORUNITTEST_HPP_ | 
|---|
| 9 | #define BOOSTGRAPHCREATORUNITTEST_HPP_ | 
|---|
| 10 |  | 
|---|
| 11 | // include config.h | 
|---|
| 12 | #ifdef HAVE_CONFIG_H | 
|---|
| 13 | #include <config.h> | 
|---|
| 14 | #endif | 
|---|
| 15 |  | 
|---|
| 16 |  | 
|---|
| 17 | #include <cppunit/extensions/HelperMacros.h> | 
|---|
| 18 |  | 
|---|
| 19 | class BoostGraphCreator; | 
|---|
| 20 |  | 
|---|
| 21 | /********************************************** Test classes **************************************/ | 
|---|
| 22 |  | 
|---|
| 23 | class BoostGraphCreatorTest : public CppUnit::TestFixture | 
|---|
| 24 | { | 
|---|
| 25 | CPPUNIT_TEST_SUITE( BoostGraphCreatorTest) ; | 
|---|
| 26 | CPPUNIT_TEST ( SetupTest ); | 
|---|
| 27 | CPPUNIT_TEST ( createFromRangeTest ); | 
|---|
| 28 | CPPUNIT_TEST ( createFromMoleculeTest ); | 
|---|
| 29 | CPPUNIT_TEST ( createFromAtomsTest ); | 
|---|
| 30 | CPPUNIT_TEST ( addremoveEdgeTest ); | 
|---|
| 31 | CPPUNIT_TEST_SUITE_END(); | 
|---|
| 32 |  | 
|---|
| 33 | public: | 
|---|
| 34 | void setUp(); | 
|---|
| 35 | void tearDown(); | 
|---|
| 36 | void SetupTest(); | 
|---|
| 37 | void createFromRangeTest(); | 
|---|
| 38 | void createFromMoleculeTest(); | 
|---|
| 39 | void createFromAtomsTest(); | 
|---|
| 40 | void addremoveEdgeTest(); | 
|---|
| 41 |  | 
|---|
| 42 | private: | 
|---|
| 43 | BoostGraphCreator *BGCreator; | 
|---|
| 44 |  | 
|---|
| 45 | molecule *TestMolecule; | 
|---|
| 46 | const element *hydrogen; | 
|---|
| 47 | const element *carbon; | 
|---|
| 48 | }; | 
|---|
| 49 |  | 
|---|
| 50 | #endif /* BOOSTGRAPHCREATORUNITTEST_HPP_ */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.