summaryrefslogtreecommitdiff
path: root/qpid/cpp/tests
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2006-12-06 12:01:40 +0000
committerGordon Sim <gsim@apache.org>2006-12-06 12:01:40 +0000
commit5ee8574ae432294f56f60ced5cfde3082cfd2dba (patch)
treec7ff45a2d70b66ab31b35021e4c73ae295510280 /qpid/cpp/tests
parent69520adb359ca50918c802611e300887bcfd5bea (diff)
downloadqpid-python-5ee8574ae432294f56f60ced5cfde3082cfd2dba.tar.gz
Added new configuration option for staging threshold (size above which messages
will be written to disk as content arrives rather than accumulating that content in memory). Pass this through to all channels and to the store on recovery. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@483046 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/tests')
-rw-r--r--qpid/cpp/tests/ConfigurationTest.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/qpid/cpp/tests/ConfigurationTest.cpp b/qpid/cpp/tests/ConfigurationTest.cpp
index c2c8eb6f32..3a1d5ba85d 100644
--- a/qpid/cpp/tests/ConfigurationTest.cpp
+++ b/qpid/cpp/tests/ConfigurationTest.cpp
@@ -32,6 +32,7 @@ class ConfigurationTest : public CppUnit::TestCase
CPPUNIT_TEST(testPortLongForm);
CPPUNIT_TEST(testPortShortForm);
CPPUNIT_TEST(testStore);
+ CPPUNIT_TEST(testStagingThreshold);
CPPUNIT_TEST(testVarious);
CPPUNIT_TEST_SUITE_END();
@@ -70,6 +71,15 @@ class ConfigurationTest : public CppUnit::TestCase
CPPUNIT_ASSERT_EQUAL(expected, conf.getStore());
}
+ void testStagingThreshold()
+ {
+ Configuration conf;
+ char* argv[] = {"ignore", "--staging-threshold", "123456789"};
+ conf.parse("ignore", 3, argv);
+ long expected = 123456789;
+ CPPUNIT_ASSERT_EQUAL(expected, conf.getStagingThreshold());
+ }
+
void testVarious()
{
Configuration conf;