source: src/Fragmentation/Homology/unittests/HomologyGraphUnitTest.hpp

Candidate_v1.6.1
Last change on this file 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
Line 
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"
21#include "Fragmentation/Homology/HomologyGraph.hpp"
22
23/********************************************** Test classes **************************************/
24
25class HomologyGraphTest : public CppUnit::TestFixture
26{
27 CPPUNIT_TEST_SUITE( HomologyGraphTest) ;
28 CPPUNIT_TEST ( comparatorTest );
29 CPPUNIT_TEST ( assigmentTest );
30 CPPUNIT_TEST ( serializeTest );
31 CPPUNIT_TEST_SUITE_END();
32
33public:
34 void setUp();
35 void tearDown();
36 void comparatorTest();
37 void assigmentTest();
38 void serializeTest();
39
40private:
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.