| 
            Last change
 on this file since b5b114 was             154e88, checked in by Frederik Heber <heber@…>, 12 years ago           | 
        
        
          | 
             
Added CompoundPotential as container for multiple FunctionModels. 
 
- added unit test that uses libMolecuilderFragmentation_getFromKeysetStub.la
as HomologyGraphUnitTest. Hence, we are not dependent full libMolecuilder.
 - so far, we simply test with a wrapped PairPotential_Morse.
  
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            1.1 KB
           | 
        
      
      
| Rev | Line |   | 
|---|
| [7b6b21f] | 1 | /*
 | 
|---|
 | 2 |  * HomologyGraphUnitTest.hpp
 | 
|---|
 | 3 |  *
 | 
|---|
 | 4 |  *  Created on: Sep 25, 2012
 | 
|---|
 | 5 |  *      Author: heber
 | 
|---|
 | 6 |  */
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 | #ifndef HOMOLOGYCONTAINERUNITTEST_HPP_
 | 
|---|
 | 9 | #define HOMOLOGYCONTAINERUNITTEST_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 | #include "Fragmentation/Homology/FragmentEdge.hpp"
 | 
|---|
 | 20 | #include "Fragmentation/Homology/FragmentNode.hpp"
 | 
|---|
| [154e88] | 21 | #include "Fragmentation/Homology/HomologyGraph.hpp"
 | 
|---|
| [7b6b21f] | 22 | 
 | 
|---|
 | 23 | /********************************************** Test classes **************************************/
 | 
|---|
 | 24 | 
 | 
|---|
 | 25 | class HomologyGraphTest : public CppUnit::TestFixture
 | 
|---|
 | 26 | {
 | 
|---|
 | 27 |     CPPUNIT_TEST_SUITE( HomologyGraphTest) ;
 | 
|---|
 | 28 |     CPPUNIT_TEST ( comparatorTest );
 | 
|---|
 | 29 |     CPPUNIT_TEST ( assigmentTest );
 | 
|---|
| [67db80] | 30 |     CPPUNIT_TEST ( serializeTest );
 | 
|---|
| [7b6b21f] | 31 |     CPPUNIT_TEST_SUITE_END();
 | 
|---|
 | 32 | 
 | 
|---|
 | 33 | public:
 | 
|---|
 | 34 |       void setUp();
 | 
|---|
 | 35 |       void tearDown();
 | 
|---|
 | 36 |       void comparatorTest();
 | 
|---|
 | 37 |       void assigmentTest();
 | 
|---|
| [67db80] | 38 |       void serializeTest();
 | 
|---|
| [7b6b21f] | 39 | 
 | 
|---|
 | 40 | private:
 | 
|---|
 | 41 |       HomologyGraph *graph;
 | 
|---|
 | 42 |       HomologyGraph::nodes_t nodes;
 | 
|---|
 | 43 |       HomologyGraph::edges_t edges;
 | 
|---|
 | 44 |       HomologyGraph::nodes_t othernodes;
 | 
|---|
 | 45 |       HomologyGraph::edges_t otheredges;
 | 
|---|
 | 46 | };
 | 
|---|
 | 47 | 
 | 
|---|
 | 48 | #endif /* HOMOLOGYCONTAINERUNITTEST_HPP_ */
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.