Author: tabish
Date: Sun Feb 3 07:32:53 2008
New Revision: 618000
URL: http://svn.apache.org/viewvc?rev=618000&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQCPP-161
Added unit tests for StompConnector
Modified:
activemq/activemq-cpp/trunk/src/test/activemq/connector/stomp/StompConnectorTest.cpp
Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/stomp/StompConnectorTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/stomp/StompConnectorTest.cpp?rev=618000&r1=617999&r2=618000&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/stomp/StompConnectorTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/stomp/StompConnectorTest.cpp Sun
Feb 3 07:32:53 2008
@@ -17,6 +17,7 @@
#include "StompConnectorTest.h"
#include <activemq/transport/TransportFactoryMap.h>
+#include <decaf/lang/exceptions/UnsupportedOperationException.h>
CPPUNIT_TEST_SUITE_REGISTRATION( activemq::connector::stomp::StompConnectorTest );
@@ -93,6 +94,11 @@
CPPUNIT_ASSERT( cinfo4->getSessionInfo() == info4 );
CPPUNIT_ASSERT( cinfo4->getDestination()->toProviderString() == dest4.toProviderString()
);
CPPUNIT_ASSERT( cinfo4->getMessageSelector() == sel4 );
+
+ CPPUNIT_ASSERT_THROW_MESSAGE(
+ "Shold Throw an UnsupportedOperationException",
+ connector->pullMessage( cinfo1, 0 ),
+ decaf::lang::exceptions::UnsupportedOperationException );
delete cinfo1;
delete cinfo2;
|