From 9c3dda9cf4bc359e68587767dd2ab072cf4a1298 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 16 Nov 2009 16:33:06 +0000 Subject: Added extra test for quoating in name or subject parts of address. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@880836 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/Address.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpp/src/tests/Address.cpp') diff --git a/cpp/src/tests/Address.cpp b/cpp/src/tests/Address.cpp index 319710ec24..f25a27d231 100644 --- a/cpp/src/tests/Address.cpp +++ b/cpp/src/tests/Address.cpp @@ -86,6 +86,13 @@ QPID_AUTO_TEST_CASE(testParseOptionsWithList) BOOST_CHECK_EQUAL((uint16_t) 101, address.getOption("x").asInt64()); } +QPID_AUTO_TEST_CASE(testParseQuotedNameAndSubject) +{ + Address address("'my topic with / in it'/'my subject with ; in it'"); + BOOST_CHECK_EQUAL(std::string("my topic with / in it"), address.getName()); + BOOST_CHECK_EQUAL(std::string("my subject with ; in it"), address.getSubject()); +} + QPID_AUTO_TEST_SUITE_END() }} -- cgit v1.2.1