Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 93493 invoked from network); 29 Nov 2007 18:45:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Nov 2007 18:45:14 -0000 Received: (qmail 3811 invoked by uid 500); 29 Nov 2007 18:45:02 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 3789 invoked by uid 500); 29 Nov 2007 18:45:02 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 3780 invoked by uid 99); 29 Nov 2007 18:45:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2007 10:45:02 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2007 18:45:12 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 836AE1A9832; Thu, 29 Nov 2007 10:44:51 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r599539 - /activemq/activemq-cpp/decaf/trunk/src/test/decaf/nio/ByteBufferTest.cpp Date: Thu, 29 Nov 2007 18:44:50 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071129184451.836AE1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tabish Date: Thu Nov 29 10:44:47 2007 New Revision: 599539 URL: http://svn.apache.org/viewvc?rev=599539&view=rev Log: http://issues.apache.org/activemq/browse/AMQCPP-103 Working on the NIO package Modified: activemq/activemq-cpp/decaf/trunk/src/test/decaf/nio/ByteBufferTest.cpp Modified: activemq/activemq-cpp/decaf/trunk/src/test/decaf/nio/ByteBufferTest.cpp URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/test/decaf/nio/ByteBufferTest.cpp?rev=599539&r1=599538&r2=599539&view=diff ============================================================================== --- activemq/activemq-cpp/decaf/trunk/src/test/decaf/nio/ByteBufferTest.cpp (original) +++ activemq/activemq-cpp/decaf/trunk/src/test/decaf/nio/ByteBufferTest.cpp Thu Nov 29 10:44:47 2007 @@ -27,8 +27,18 @@ //////////////////////////////////////////////////////////////////////////////// void ByteBufferTest::test() { + // Check that we have setup the array and our initial assumptions on state + // are correct. This is the first test run. CPPUNIT_ASSERT( testBuffer1 != NULL ); CPPUNIT_ASSERT( testBuffer1->capacity() == testData1Size ); + CPPUNIT_ASSERT( testBuffer1->hasRemaining() == true ); + CPPUNIT_ASSERT( testBuffer1->limit() == testBuffer1->capacity() ); + CPPUNIT_ASSERT( testBuffer1->position() == 0 ); + CPPUNIT_ASSERT( testBuffer1->isReadOnly() == false ); + CPPUNIT_ASSERT( testBuffer1->toString() != "" ); + CPPUNIT_ASSERT( testBuffer1->hasArray() == true ); + CPPUNIT_ASSERT( testBuffer1->array() != NULL ); + CPPUNIT_ASSERT( testBuffer1->arrayOffset() == 0 ); } ////////////////////////////////////////////////////////////////////////////////