activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r562984 - /activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/util/UUIDTest.cpp
Date Sun, 05 Aug 2007 23:09:44 GMT
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 );
 
 }



Mime
View raw message