19 #include <boost/test/unit_test.hpp>
25 BOOST_AUTO_TEST_SUITE(physical)
43 Config config1(name1, value1);
44 Config config2(
"name3",
"value3", order2);
52 BOOST_CHECK_EQUAL(config1.
getName(), name1);
53 BOOST_CHECK_EQUAL(config1.
getValue(), value1);
55 BOOST_CHECK(config1.
getOrder() == order1);
56 BOOST_CHECK(config2.
getOrder() == order2);
57 BOOST_CHECK(config3.
getOrder() == order3);
66 BOOST_CHECK_EQUAL(config1.
getName(), name2);
67 BOOST_CHECK_EQUAL(config1.
getValue(), value2);
71 BOOST_CHECK((config1 == config2) ==
false);
74 BOOST_AUTO_TEST_SUITE_END()
boost::uint64_t SequenceIndex
Typedef for generic sequences.
void setOrder(SequenceIndex inOrder)
Set the sequence index for this configuration.
Header for the Config class.
BOOST_AUTO_TEST_CASE(XdlUnpackUnitTest)
Unit test for the XdlUnpack class.
Configuration. A {name:value} pair.
const string & getName(void) const
Returns the object name.
const string & getValue(void) const
Return the configuration value.
void setValue(const string &inValue)
Set the configuration value.
void setName(const string &inName)
Sets the object name.
SequenceIndex getOrder(void) const
Return the configuration sequence index.