From 9094d2b10ecadd66fa3b22169183e7573cc79629 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 31 Oct 2006 19:53:55 +0000 Subject: IO refactor phase 1. Reduced dependencies, removed redundant classes. Renamed pricipal APR classes in preparation for move to apr namespace. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@469625 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/test/unit/qpid/broker/ConfigurationTest.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'cpp/test/unit/qpid/broker/ConfigurationTest.cpp') diff --git a/cpp/test/unit/qpid/broker/ConfigurationTest.cpp b/cpp/test/unit/qpid/broker/ConfigurationTest.cpp index 1c24076ee3..7acee7c8b9 100644 --- a/cpp/test/unit/qpid/broker/ConfigurationTest.cpp +++ b/cpp/test/unit/qpid/broker/ConfigurationTest.cpp @@ -28,8 +28,6 @@ class ConfigurationTest : public CppUnit::TestCase CPPUNIT_TEST(testIsHelp); CPPUNIT_TEST(testPortLongForm); CPPUNIT_TEST(testPortShortForm); - CPPUNIT_TEST(testAcceptorLongForm); - CPPUNIT_TEST(testAcceptorShortForm); CPPUNIT_TEST(testVarious); CPPUNIT_TEST_SUITE_END(); @@ -59,29 +57,12 @@ class ConfigurationTest : public CppUnit::TestCase CPPUNIT_ASSERT_EQUAL(6789, conf.getPort()); } - void testAcceptorLongForm() - { - Configuration conf; - char* argv[] = {"ignore", "--acceptor", "blocking"}; - conf.parse(3, argv); - CPPUNIT_ASSERT_EQUAL(string("blocking"), conf.getAcceptor()); - } - - void testAcceptorShortForm() - { - Configuration conf; - char* argv[] = {"ignore", "-a", "blocking"}; - conf.parse(3, argv); - CPPUNIT_ASSERT_EQUAL(string("blocking"), conf.getAcceptor()); - } - void testVarious() { Configuration conf; char* argv[] = {"ignore", "-t", "--worker-threads", "10", "-a", "blocking"}; conf.parse(6, argv); CPPUNIT_ASSERT_EQUAL(5672, conf.getPort());//default - CPPUNIT_ASSERT_EQUAL(string("blocking"), conf.getAcceptor()); CPPUNIT_ASSERT_EQUAL(10, conf.getWorkerThreads()); CPPUNIT_ASSERT(conf.isTrace()); CPPUNIT_ASSERT(!conf.isHelp()); -- cgit v1.2.1