- Timestamp:
- Dec 16, 2010, 11:47:44 PM (14 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- 41396a
- Parents:
- 6c9adc
- git-author:
- Frederik Heber <heber@…> (12/16/10 14:54:02)
- git-committer:
- Frederik Heber <heber@…> (12/16/10 23:47:44)
- Location:
- src
- Files:
-
- 2 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
src/Patterns/unittests/Makefile.am
r6c9adc ra2c4f3 10 10 TESTS = \ 11 11 CacheableUnitTest \ 12 ObserverUnitTest \ 12 13 SingletonUnitTest 13 14 … … 23 24 ../Cachable.hpp \ 24 25 ../Observer.cpp \ 25 ../Observer.hpp 26 ../Observer.hpp \ 27 ../ObserverIterator.hpp 26 28 CacheableUnitTest_LDADD = $(BOOST_LIB) 29 30 ObserverUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 31 ObserverUnitTest.cpp \ 32 ObserverUnitTest.hpp \ 33 ../Observer.cpp \ 34 ../Observer.hpp \ 35 ../ObserverIterator.hpp 36 ObserverUnitTest_LDADD = $(BOOST_LIB) 27 37 28 38 SingletonUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ -
src/Patterns/unittests/ObserverUnitTest.cpp
r6c9adc ra2c4f3 18 18 #endif 19 19 20 #include "ObserverTest.hpp"21 22 20 #include <cppunit/CompilerOutputter.h> 23 21 #include <cppunit/extensions/TestFactoryRegistry.h> … … 31 29 #include <iostream> 32 30 33 using namespace std; 31 #include "ObserverUnitTest.hpp" 34 32 35 33 #ifdef HAVE_TESTRUNNER … … 245 243 SimpleObservable *content = new SimpleObservable(); 246 244 content->signOn(this); 247 theSet.insert( make_pair(i,content));245 theSet.insert(std::make_pair(i,content)); 248 246 } 249 247 } … … 462 460 463 461 void ObserverTest::CircleDetectionTest() { 464 cout << endl << "Warning: the next test involved methods that can produce infinite loops." <<endl;465 cout << "Errors in this methods can not be checked using the CPPUNIT_ASSERT Macros." <<endl;466 cout << "Instead tests are run on these methods to see if termination is assured" << endl <<endl;467 cout << "If this test does not complete in a few seconds, kill the test-suite and fix the Error in the circle detection mechanism" <<endl;468 469 cout << endl << endl << "The following errors displayed by the observer framework can be ignored" <<endl;462 std::cout << std::endl << "Warning: the next test involved methods that can produce infinite loops." << std::endl; 463 std::cout << "Errors in this methods can not be checked using the CPPUNIT_ASSERT Macros." << std::endl; 464 std::cout << "Instead tests are run on these methods to see if termination is assured" << std::endl << std::endl; 465 std::cout << "If this test does not complete in a few seconds, kill the test-suite and fix the Error in the circle detection mechanism" << std::endl; 466 467 std::cout << std::endl << std::endl << "The following errors displayed by the observer framework can be ignored" << std::endl; 470 468 471 469 // make this Observable its own subject. NEVER DO THIS IN ACTUAL CODE -
src/unittests/Makefile.am
r6c9adc ra2c4f3 28 28 LinkedCellUnitTest \ 29 29 ListOfBondsUnitTest \ 30 ObserverTest \31 30 ParserCommonUnitTest \ 32 31 ParserTremoloUnitTest \ … … 88 87 ../UIElements/Menu/unittests/MenuDescriptionUnitTest.cpp \ 89 88 ../Descriptors/unittests/MoleculeDescriptorUnitTest.cpp \ 90 ObserverTest.cpp \89 ../Patterns/unittests/ObserverUnitTest.cpp \ 91 90 ParserCommonUnitTest.cpp \ 92 91 ParserTremoloUnitTest.cpp \ … … 128 127 ../UIElements/Menu/unittests/MenuDescriptionUnitTest.hpp \ 129 128 ../Descriptors/unittests/MoleculeDescriptorUnitTest.hpp \ 130 ObserverTest.hpp \129 ../Patterns/unittests/ObserverUnitTest.hpp \ 131 130 periodentafelTest.hpp \ 132 131 ParserCommonUnitTest.hpp \ … … 177 176 ListOfBondsUnitTest_LDADD = ${ALLLIBS} 178 177 179 ObserverTest_SOURCES = UnitTestMain.cpp ObserverTest.cpp ObserverTest.hpp180 ObserverTest_LDADD = ${ALLLIBS}181 182 178 ParserCommonUnitTest_SOURCES = UnitTestMain.cpp ParserCommonUnitTest.cpp ParserCommonUnitTest.hpp 183 179 ParserCommonUnitTest_LDADD = ${ALLLIBS}
Note:
See TracChangeset
for help on using the changeset viewer.