activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1042269 - in /activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util: MemoryUsageTest.cpp PrimitiveListTest.cpp PrimitiveMapTest.cpp PrimitiveValueNodeTest.cpp
Date Sun, 05 Dec 2010 00:21:04 GMT
Author: tabish
Date: Sun Dec  5 00:21:04 2010
New Revision: 1042269

URL: http://svn.apache.org/viewvc?rev=1042269&view=rev
Log:
Fix some code formatting issues.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/MemoryUsageTest.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/PrimitiveListTest.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/PrimitiveMapTest.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/PrimitiveValueNodeTest.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/MemoryUsageTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/MemoryUsageTest.cpp?rev=1042269&r1=1042268&r2=1042269&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/MemoryUsageTest.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/MemoryUsageTest.cpp Sun
Dec  5 00:21:04 2010
@@ -26,6 +26,7 @@ using namespace activemq;
 using namespace activemq::util;
 using namespace decaf::lang;
 
+////////////////////////////////////////////////////////////////////////////////
 class UsageRunner : public decaf::lang::Runnable {
 private:
 
@@ -43,6 +44,7 @@ public:
     }
 };
 
+////////////////////////////////////////////////////////////////////////////////
 void MemoryUsageTest::testCTors() {
 
     MemoryUsage usage1;
@@ -55,6 +57,7 @@ void MemoryUsageTest::testCTors() {
     CPPUNIT_ASSERT( usage2.getUsage() == 0 );
 }
 
+////////////////////////////////////////////////////////////////////////////////
 void MemoryUsageTest::testUsage() {
 
     MemoryUsage usage1( 2048 );
@@ -82,6 +85,7 @@ void MemoryUsageTest::testUsage() {
     CPPUNIT_ASSERT( usage1.getUsage() == 3072 );
 }
 
+////////////////////////////////////////////////////////////////////////////////
 void MemoryUsageTest::testTimedWait() {
 
     MemoryUsage usage( 2048 );
@@ -96,6 +100,7 @@ void MemoryUsageTest::testTimedWait() {
     CPPUNIT_ASSERT( endTime - startTime >= 125 );
 }
 
+////////////////////////////////////////////////////////////////////////////////
 void MemoryUsageTest::testWait() {
 
     MemoryUsage usage( 2048 );
@@ -109,5 +114,4 @@ void MemoryUsageTest::testWait() {
     CPPUNIT_ASSERT( usage.getUsage() == 0 );
 
     myThread.join();
-
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/PrimitiveListTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/PrimitiveListTest.cpp?rev=1042269&r1=1042268&r2=1042269&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/PrimitiveListTest.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/PrimitiveListTest.cpp
Sun Dec  5 00:21:04 2010
@@ -23,6 +23,7 @@
 using namespace activemq;
 using namespace activemq::util;
 
+////////////////////////////////////////////////////////////////////////////////
 void PrimitiveListTest::testSetGet(){
 
     PrimitiveList plist;
@@ -120,6 +121,7 @@ void PrimitiveListTest::testSetGet(){
     CPPUNIT_ASSERT( plist.getByteArray(0) == byteArray );
 }
 
+////////////////////////////////////////////////////////////////////////////////
 void PrimitiveListTest::testAdd(){
 
     bool boolValue = true;
@@ -171,6 +173,7 @@ void PrimitiveListTest::testAdd(){
     CPPUNIT_ASSERT( plist.get(9).getType() == PrimitiveValueNode::BYTE_ARRAY_TYPE );
 }
 
+////////////////////////////////////////////////////////////////////////////////
 void PrimitiveListTest::testRemove(){
 
     PrimitiveList plist;
@@ -190,6 +193,7 @@ void PrimitiveListTest::testRemove(){
     CPPUNIT_ASSERT( plist.isEmpty() );
 }
 
+////////////////////////////////////////////////////////////////////////////////
 void PrimitiveListTest::testCount(){
 
     PrimitiveList plist;
@@ -206,6 +210,7 @@ void PrimitiveListTest::testCount(){
     CPPUNIT_ASSERT( plist.toString() != "" );
 }
 
+////////////////////////////////////////////////////////////////////////////////
 void PrimitiveListTest::testCopy(){
 
     PrimitiveList plist;
@@ -221,6 +226,7 @@ void PrimitiveListTest::testCopy(){
     CPPUNIT_ASSERT( plist.equals( copy1 ) );
 }
 
+////////////////////////////////////////////////////////////////////////////////
 void PrimitiveListTest::testClear(){
 
     PrimitiveList plist;
@@ -247,6 +253,7 @@ void PrimitiveListTest::testClear(){
         decaf::lang::exceptions::IndexOutOfBoundsException );
 }
 
+////////////////////////////////////////////////////////////////////////////////
 void PrimitiveListTest::testContains(){
 
     PrimitiveList plist;
@@ -266,6 +273,7 @@ void PrimitiveListTest::testContains(){
     CPPUNIT_ASSERT( plist.contains( 5 ) == false );
 }
 
+////////////////////////////////////////////////////////////////////////////////
 void PrimitiveListTest::testListOfLists() {
 
     PrimitiveList list;
@@ -287,6 +295,7 @@ void PrimitiveListTest::testListOfLists(
 
 }
 
+////////////////////////////////////////////////////////////////////////////////
 void PrimitiveListTest::testListOfMaps() {
 
     PrimitiveList list;

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/PrimitiveMapTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/PrimitiveMapTest.cpp?rev=1042269&r1=1042268&r2=1042269&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/PrimitiveMapTest.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/PrimitiveMapTest.cpp Sun
Dec  5 00:21:04 2010
@@ -22,6 +22,7 @@
 using namespace activemq;
 using namespace activemq::util;
 
+////////////////////////////////////////////////////////////////////////////////
 void PrimitiveMapTest::testValueNode(){
 
     PrimitiveValueNode node;
@@ -85,6 +86,7 @@ void PrimitiveMapTest::testValueNode(){
     CPPUNIT_ASSERT( node.getType() == PrimitiveValueNode::NULL_TYPE );
 }
 
+////////////////////////////////////////////////////////////////////////////////
 void PrimitiveMapTest::testSetGet(){
 
     PrimitiveMap pmap;
@@ -176,6 +178,7 @@ void PrimitiveMapTest::testSetGet(){
 
 }
 
+////////////////////////////////////////////////////////////////////////////////
 void PrimitiveMapTest::testRemove(){
 
     PrimitiveMap pmap;
@@ -189,6 +192,7 @@ void PrimitiveMapTest::testRemove(){
     } catch( decaf::lang::exceptions::NoSuchElementException& e ){}
 }
 
+////////////////////////////////////////////////////////////////////////////////
 void PrimitiveMapTest::testCount(){
 
     PrimitiveMap pmap;
@@ -205,6 +209,7 @@ void PrimitiveMapTest::testCount(){
     CPPUNIT_ASSERT( pmap.toString() != "" );
 }
 
+////////////////////////////////////////////////////////////////////////////////
 void PrimitiveMapTest::testCopy(){
 
     PrimitiveMap pmap;
@@ -220,6 +225,7 @@ void PrimitiveMapTest::testCopy(){
     CPPUNIT_ASSERT( pmap.equals( copy1 ) );
 }
 
+////////////////////////////////////////////////////////////////////////////////
 void PrimitiveMapTest::testClear(){
 
     PrimitiveMap pmap;
@@ -246,6 +252,7 @@ void PrimitiveMapTest::testClear(){
     } catch( decaf::lang::exceptions::NoSuchElementException& e ){}
 }
 
+////////////////////////////////////////////////////////////////////////////////
 void PrimitiveMapTest::testContains(){
 
     PrimitiveMap pmap;
@@ -265,6 +272,7 @@ void PrimitiveMapTest::testContains(){
     CPPUNIT_ASSERT( pmap.containsKey("int") == false );
 }
 
+////////////////////////////////////////////////////////////////////////////////
 void PrimitiveMapTest::testGetKeys(){
 
     PrimitiveMap pmap;
@@ -279,4 +287,3 @@ void PrimitiveMapTest::testGetKeys(){
     CPPUNIT_ASSERT( keys[1] == "int" || keys[1] == "float" || keys[1] == "int2" );
     CPPUNIT_ASSERT( keys[2] == "int" || keys[2] == "float" || keys[2] == "int2" );
 }
-

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/PrimitiveValueNodeTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/PrimitiveValueNodeTest.cpp?rev=1042269&r1=1042268&r2=1042269&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/PrimitiveValueNodeTest.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/PrimitiveValueNodeTest.cpp
Sun Dec  5 00:21:04 2010
@@ -22,6 +22,7 @@
 using namespace activemq;
 using namespace activemq::util;
 
+////////////////////////////////////////////////////////////////////////////////
 void PrimitiveValueNodeTest::testValueNode(){
 
     PrimitiveValueNode node;
@@ -85,6 +86,7 @@ void PrimitiveValueNodeTest::testValueNo
     CPPUNIT_ASSERT( node.getType() == PrimitiveValueNode::NULL_TYPE );
 }
 
+////////////////////////////////////////////////////////////////////////////////
 void PrimitiveValueNodeTest::testValueNodeCtors(){
 
     PrimitiveValueNode tfvalue = true;



Mime
View raw message