summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
+}