diff options
author | Gordon Sim <gsim@apache.org> | 2006-11-15 10:28:11 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2006-11-15 10:28:11 +0000 |
commit | 8690d6d8c01335523a8a4b1677979ee1ce51dec0 (patch) | |
tree | 8df5afa2dcd96a57b9cbf869a7a3a672af4ba134 /cpp/test | |
parent | 71ae30ea0b7d3cb4b848ad84fb90c782894cf606 (diff) | |
download | qpid-python-8690d6d8c01335523a8a4b1677979ee1ce51dec0.tar.gz |
Added ability for broker to load a message store implementation from a library.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@475181 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/test')
-rw-r--r-- | cpp/test/unit/qpid/broker/ConfigurationTest.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/cpp/test/unit/qpid/broker/ConfigurationTest.cpp b/cpp/test/unit/qpid/broker/ConfigurationTest.cpp index 610e4f4824..33ee80a965 100644 --- a/cpp/test/unit/qpid/broker/ConfigurationTest.cpp +++ b/cpp/test/unit/qpid/broker/ConfigurationTest.cpp @@ -31,6 +31,7 @@ class ConfigurationTest : public CppUnit::TestCase CPPUNIT_TEST(testIsHelp); CPPUNIT_TEST(testPortLongForm); CPPUNIT_TEST(testPortShortForm); + CPPUNIT_TEST(testStore); CPPUNIT_TEST(testVarious); CPPUNIT_TEST_SUITE_END(); @@ -60,9 +61,18 @@ class ConfigurationTest : public CppUnit::TestCase CPPUNIT_ASSERT_EQUAL(6789, conf.getPort()); } - void testVarious() + void testStore() { Configuration conf; + char* argv[] = {"ignore", "--store", "my-store-module.so"}; + conf.parse(3, argv); + std::string expected("my-store-module.so"); + CPPUNIT_ASSERT_EQUAL(expected, conf.getStore()); + } + + void testVarious() + { + Configuration conf; char* argv[] = {"ignore", "-t", "--worker-threads", "10"}; conf.parse(4, argv); CPPUNIT_ASSERT_EQUAL(5672, conf.getPort());//default |