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 | bfa6397192a4b5aa8b68130a1b5baf211a8f50c1 (patch) | |
| tree | 6b221d4ef2fd7163594dc81a4d6805ad7097b06f /qpid/cpp/test | |
| parent | d371bcd50dde9d70596a9a6a330e0705d10983c9 (diff) | |
| download | qpid-python-bfa6397192a4b5aa8b68130a1b5baf211a8f50c1.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@475181 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/test')
| -rw-r--r-- | qpid/cpp/test/unit/qpid/broker/ConfigurationTest.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/qpid/cpp/test/unit/qpid/broker/ConfigurationTest.cpp b/qpid/cpp/test/unit/qpid/broker/ConfigurationTest.cpp index 610e4f4824..33ee80a965 100644 --- a/qpid/cpp/test/unit/qpid/broker/ConfigurationTest.cpp +++ b/qpid/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 |
