From bfa6397192a4b5aa8b68130a1b5baf211a8f50c1 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 15 Nov 2006 10:28:11 +0000 Subject: 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 --- qpid/cpp/test/unit/qpid/broker/ConfigurationTest.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'qpid/cpp/test') 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,8 +61,17 @@ 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); -- cgit v1.2.1