diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2015-05-06 10:27:22 +0200 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2015-05-06 15:18:03 +0200 |
commit | c6f6d6fbc3537cedefc0cef8e71819436a0a60c1 (patch) | |
tree | 35df7c29635a164ea426a1827b8fe4787f779ff5 | |
parent | 47fe3421585302f2101691a685ab99b0e1ad5cfc (diff) | |
download | astra-c6f6d6fbc3537cedefc0cef8e71819436a0a60c1.tar.gz astra-c6f6d6fbc3537cedefc0cef8e71819436a0a60c1.tar.bz2 astra-c6f6d6fbc3537cedefc0cef8e71819436a0a60c1.tar.xz astra-c6f6d6fbc3537cedefc0cef8e71819436a0a60c1.zip |
Add extra XMLNode/XMLDocument/Config test
-rw-r--r-- | tests/test_XMLDocument.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_XMLDocument.cpp b/tests/test_XMLDocument.cpp index 07abee3..18e880d 100644 --- a/tests/test_XMLDocument.cpp +++ b/tests/test_XMLDocument.cpp @@ -32,6 +32,7 @@ $Id$ #include <boost/test/auto_unit_test.hpp> #include "astra/XMLDocument.h" +#include "astra/Config.h" BOOST_AUTO_TEST_CASE( testXMLDocument_Constructor1 ) { @@ -148,3 +149,18 @@ BOOST_AUTO_TEST_CASE( testXMLDocument_List ) } +BOOST_AUTO_TEST_CASE( testXMLDocument_Config ) +{ + astra::Config* cfg = new astra::Config(); + cfg->initialize("VolumeGeometry2D"); + + cfg->self.addChildNode("GridColCount", 1); + cfg->self.addChildNode("GridRowCount", 2); + + cfg->self.addOption("WindowMinX", 3); + cfg->self.addOption("WindowMaxX", 4); + cfg->self.addOption("WindowMinY", 5); + cfg->self.addOption("WindowMaxY", 6); + + delete cfg; +} |