summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-05-06 10:27:22 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-05-06 15:18:03 +0200
commitc6f6d6fbc3537cedefc0cef8e71819436a0a60c1 (patch)
tree35df7c29635a164ea426a1827b8fe4787f779ff5 /tests
parent47fe3421585302f2101691a685ab99b0e1ad5cfc (diff)
downloadastra-c6f6d6fbc3537cedefc0cef8e71819436a0a60c1.tar.gz
astra-c6f6d6fbc3537cedefc0cef8e71819436a0a60c1.tar.bz2
astra-c6f6d6fbc3537cedefc0cef8e71819436a0a60c1.tar.xz
astra-c6f6d6fbc3537cedefc0cef8e71819436a0a60c1.zip
Add extra XMLNode/XMLDocument/Config test
Diffstat (limited to 'tests')
-rw-r--r--tests/test_XMLDocument.cpp16
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;
+}