You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2007/08/06 01:09:44 UTC

svn commit: r562984 - /activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/util/UUIDTest.cpp

Author: tabish
Date: Sun Aug  5 16:09:43 2007
New Revision: 562984

URL: http://svn.apache.org/viewvc?view=rev&rev=562984
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103

Working on the UUID impl.

Modified:
    activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/util/UUIDTest.cpp

Modified: activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/util/UUIDTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/util/UUIDTest.cpp?view=diff&rev=562984&r1=562983&r2=562984
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/util/UUIDTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/util/UUIDTest.cpp Sun Aug  5 16:09:43 2007
@@ -36,6 +36,12 @@
     CPPUNIT_ASSERT( !( randId.equals( bytesId ) ) );
     CPPUNIT_ASSERT( randId.compareTo( bytesId ) != 0 );
 
+    std::string uuidStr = randId.toString();
+
+    UUID strId = UUID::fromString( uuidStr );
+
+    CPPUNIT_ASSERT( randId == strId );
+
     CPPUNIT_ASSERT( randId.variant() == 2 );
 
 }