Author: tabish
Date: Sat Nov 3 06:48:05 2007
New Revision: 591622
URL: http://svn.apache.org/viewvc?rev=591622&view=rev
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103
http://issues.apache.org/activemq/browse/AMQCPP-136
Added:
activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterInputStreamTest.cpp
activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterInputStreamTest.h
activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterOutputStreamTest.cpp
activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterOutputStreamTest.h
Modified:
activemq/activemq-cpp/decaf/trunk/src/main/decaf/io/FilterInputStream.h
activemq/activemq-cpp/decaf/trunk/src/main/decaf/io/FilterOutputStream.h
activemq/activemq-cpp/decaf/trunk/src/test/Makefile.am
activemq/activemq-cpp/decaf/trunk/src/test/testRegistry.cpp
Modified:
activemq/activemq-cpp/decaf/trunk/src/main/decaf/io/FilterInputStream.h
URL:
http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/io/FilterInputStream.h?rev=591622&r1=591621&r2=591622&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/io/FilterInputStream.h
(original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/io/FilterInputStream.h Sat
Nov 3 06:48:05 2007
@@ -81,6 +81,13 @@
*/
virtual std::size_t available() const throw ( IOException ) {
try {
+
+ if( isClosed() ) {
+ throw IOException(
+ __FILE__, __LINE__,
+ "FilterInputStream::available - Stream is closed" );
+ }
+
return inputStream->available();
}
DECAF_CATCH_RETHROW( IOException )
@@ -99,6 +106,13 @@
*/
virtual unsigned char read() throw ( IOException ) {
try {
+
+ if( isClosed() ) {
+ throw IOException(
+ __FILE__, __LINE__,
+ "FilterInputStream::read - Stream is closed" );
+ }
+
return inputStream->read();
}
DECAF_CATCH_RETHROW( IOException )
@@ -120,6 +134,13 @@
lang::exceptions::NullPointerException )
{
try {
+
+ if( isClosed() ) {
+ throw IOException(
+ __FILE__, __LINE__,
+ "FilterInputStream::read - Stream is closed" );
+ }
+
return inputStream->read( buffer, bufferSize );
}
DECAF_CATCH_RETHROW( IOException )
@@ -165,6 +186,13 @@
*/
virtual std::size_t skip( std::size_t num ) throw ( io::IOException,
lang::exceptions::UnsupportedOperationException ) {
try {
+
+ if( isClosed() ) {
+ throw IOException(
+ __FILE__, __LINE__,
+ "FilterInputStream::skip - Stream is closed" );
+ }
+
return inputStream->skip( num );
}
DECAF_CATCH_RETHROW(
lang::exceptions::UnsupportedOperationException )
Modified:
activemq/activemq-cpp/decaf/trunk/src/main/decaf/io/FilterOutputStream.h
URL:
http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/io/FilterOutputStream.h?rev=591622&r1=591621&r2=591622&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/io/FilterOutputStream.h
(original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/io/FilterOutputStream.h
Sat Nov 3 06:48:05 2007
@@ -92,6 +92,13 @@
*/
virtual void write( unsigned char c ) throw ( IOException ) {
try {
+
+ if( isClosed() ) {
+ throw IOException(
+ __FILE__, __LINE__,
+ "FilterOutputStream::write - Stream is closed" );
+ }
+
outputStream->write( c );
}
DECAF_CATCH_RETHROW( IOException )
@@ -112,6 +119,12 @@
lang::exceptions::NullPointerException ) {
try {
+ if( isClosed() ) {
+ throw IOException(
+ __FILE__, __LINE__,
+ "FilterOutputStream::write - Stream is closed" );
+ }
+
if( buffer == NULL ) {
throw lang::exceptions::NullPointerException(
__FILE__, __LINE__,
@@ -134,6 +147,13 @@
*/
virtual void flush() throw ( IOException ) {
try {
+
+ if( isClosed() ) {
+ throw IOException(
+ __FILE__, __LINE__,
+ "FilterOutputStream::flush - Stream is closed" );
+ }
+
outputStream->flush();
}
DECAF_CATCH_RETHROW( IOException )
Modified: activemq/activemq-cpp/decaf/trunk/src/test/Makefile.am
URL:
http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/test/Makefile.am?rev=591622&r1=591621&r2=591622&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/test/Makefile.am (original)
+++ activemq/activemq-cpp/decaf/trunk/src/test/Makefile.am Sat Nov 3 06:48:05
2007
@@ -28,6 +28,8 @@
decaf/lang/ExceptionTest.cpp \
decaf/lang/MathTest.cpp \
decaf/lang/SystemTest.cpp \
+ decaf/io/FilterInputStreamTest.cpp \
+ decaf/io/FilterOutputStreamTest.cpp \
decaf/io/BufferedInputStreamTest.cpp \
decaf/io/BufferedOutputStreamTest.cpp \
decaf/io/ByteArrayInputStreamTest.cpp \
@@ -65,6 +67,8 @@
decaf/lang/ExceptionTest.h \
decaf/lang/MathTest.h \
decaf/lang/SystemTest.h \
+ decaf/io/FilterInputStreamTest.h \
+ decaf/io/FilterOutputStreamTest.h \
decaf/io/BufferedInputStreamTest.h \
decaf/io/BufferedOutputStreamTest.h \
decaf/io/ByteArrayInputStreamTest.h \
Added:
activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterInputStreamTest.cpp
URL:
http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterInputStreamTest.cpp?rev=591622&view=auto
==============================================================================
---
activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterInputStreamTest.cpp
(added)
+++
activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterInputStreamTest.cpp
Sat Nov 3 06:48:05 2007
@@ -0,0 +1,117 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "FilterInputStreamTest.h"
+#include <decaf/io/ByteArrayInputStream.h>
+
+using namespace std;
+using namespace decaf;
+using namespace decaf::lang;
+using namespace decaf::io;
+using namespace decaf::util;
+
+////////////////////////////////////////////////////////////////////////////////
+void FilterInputStreamTest::testAvailable() {
+
+ std::string testStr = "TEST12345678910";
+ MyInputStream myStream( testStr );
+ FilterInputStream is( &myStream );
+
+ CPPUNIT_ASSERT_MESSAGE( "Returned incorrect number of available bytes",
+ is.available() == testStr.length() );
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void FilterInputStreamTest::testClose() {
+
+ std::string testStr = "TEST12345678910";
+ MyInputStream myStream( testStr );
+ FilterInputStream is( &myStream );
+
+ try {
+ is.close();
+ } catch( IOException& e ) {
+ CPPUNIT_FAIL("Exception attempting to close stream");
+ }
+
+ try {
+ is.read();
+ } catch( IOException& e ) {
+ return;
+ }
+
+ CPPUNIT_FAIL("Able to read from closed stream");
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void FilterInputStreamTest::testRead() {
+
+ std::string testStr = "TEST12345678910";
+ MyInputStream myStream( testStr );
+ FilterInputStream is( &myStream );
+
+ char c = is.read();
+ CPPUNIT_ASSERT_MESSAGE( "read returned incorrect char",
+ c == testStr.at(0) );
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void FilterInputStreamTest::testRead2() {
+
+ std::string testStr = "TEST12345678910ABCDEFGHIJKLMNOPQRSTU";
+ MyInputStream myStream( testStr );
+ FilterInputStream is( &myStream );
+
+ unsigned char buf[30];
+ is.read( buf, 30 );
+ CPPUNIT_ASSERT_MESSAGE( "Failed to read correct data",
+ string( (const char*)buf, 30 ) == testStr.substr(0, 30) );
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void FilterInputStreamTest::testRead3() {
+
+ std::string testStr;
+ for( int i = 0; i < 4000; ++i ) {
+ testStr += (char)i;
+ }
+ MyInputStream myStream( testStr );
+ FilterInputStream is( &myStream );
+
+ unsigned char buf[100];
+ is.skip(3000);
+ is.read( buf, 100 );
+ CPPUNIT_ASSERT_MESSAGE( "Failed to read correct data",
+ string( (const char*)buf, 100 ) == testStr.substr( 3000, 100 ) );
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void FilterInputStreamTest::testSkip() {
+
+ std::string testStr;
+ for( int i = 0; i < 4000; ++i ) {
+ testStr += (char)i;
+ }
+ MyInputStream myStream( testStr );
+ FilterInputStream is( &myStream );
+
+ unsigned char buf[100];
+ is.skip( 1000 );
+ is.read( buf, 100 );
+ CPPUNIT_ASSERT_MESSAGE( "Failed to skip to correct position",
+ string( (const char*)buf, 100 ) == testStr.substr( 1000, 100 ) );
+}
Added:
activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterInputStreamTest.h
URL:
http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterInputStreamTest.h?rev=591622&view=auto
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterInputStreamTest.h
(added)
+++ activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterInputStreamTest.h
Sat Nov 3 06:48:05 2007
@@ -0,0 +1,157 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _DECAF_IO_FILTERINPUTSTREAMTEST_H_
+#define _DECAF_IO_FILTERINPUTSTREAMTEST_H_
+
+#include <cppunit/TestFixture.h>
+#include <cppunit/extensions/HelperMacros.h>
+
+#include <decaf/lang/Exception.h>
+#include <decaf/io/FilterInputStream.h>
+
+namespace decaf{
+namespace io{
+
+ class FilterInputStreamTest : public CppUnit::TestFixture {
+
+ CPPUNIT_TEST_SUITE( FilterInputStreamTest );
+ CPPUNIT_TEST( testAvailable );
+ CPPUNIT_TEST( testClose );
+ CPPUNIT_TEST( testRead );
+ CPPUNIT_TEST( testRead2 );
+ CPPUNIT_TEST( testRead3 );
+ CPPUNIT_TEST( testSkip );
+ CPPUNIT_TEST_SUITE_END();
+
+ public:
+
+ FilterInputStreamTest() {}
+ virtual ~FilterInputStreamTest() {}
+
+ void testAvailable();
+ void testClose();
+ void testRead();
+ void testRead2();
+ void testRead3();
+ void testSkip();
+
+ public:
+
+ class MyInputStream : public InputStream{
+ private:
+ std::string data;
+ std::size_t pos;
+ bool throwOnRead;
+ bool closed;
+
+ public:
+
+ MyInputStream( const std::string& data ){
+ this->data = data;
+ this->pos = 0;
+ this->throwOnRead = false;
+ this->closed = false;
+ }
+ virtual ~MyInputStream(){}
+
+ void setThrowOnRead( bool value ) {
+ this->throwOnRead = value;
+ }
+
+ bool isThrowOnRead() const {
+ return this->throwOnRead;
+ }
+
+ bool isClosed() const {
+ return this->closed;
+ }
+
+ virtual std::size_t available() const throw (IOException){
+ if( isClosed() ) {
+ throw IOException(
+ __FILE__, __LINE__,
+ "MyInputStream::read - Stream already closed." );
+ }
+ std::size_t len = data.length();
+ return len - pos;
+ }
+
+ virtual unsigned char read() throw (IOException){
+ if( this->isThrowOnRead() ) {
+ throw IOException(
+ __FILE__, __LINE__,
+ "MyInputStream::read - Throw on Read on." );
+ }
+
+ if( pos >= data.length() ){
+ throw IOException();
+ }
+
+ return data.c_str()[pos++];
+ }
+
+ virtual int read( unsigned char* buffer, std::size_t bufferSize )
throw (IOException){
+ std::size_t numToRead = std::min( bufferSize, available() );
+
+ if( this->isThrowOnRead() ) {
+ throw IOException(
+ __FILE__, __LINE__,
+ "MyInputStream::read - Throw on Read on." );
+ }
+
+ // Simulate EOF
+ if( numToRead == 0 ) {
+ return -1;
+ }
+
+ const char* str = data.c_str();
+ for( std::size_t ix=0; ix<numToRead; ++ix ){
+ buffer[ix] = str[pos+ix];
+ }
+
+ pos += numToRead;
+
+ return numToRead;
+ }
+
+ virtual void close() throw(lang::Exception){
+ this->closed = true;
+ }
+ virtual std::size_t skip( std::size_t num ) throw (
io::IOException, lang::exceptions::UnsupportedOperationException ) {
+ return ( pos += std::min( num, available() ) );
+ }
+
+ virtual void lock() throw(lang::Exception){
+ }
+ virtual void unlock() throw(lang::Exception){
+ }
+ virtual void wait() throw(lang::Exception){
+ }
+ virtual void wait(unsigned long millisecs DECAF_UNUSED)
throw(lang::Exception){
+ }
+ virtual void notify() throw(lang::Exception){
+ }
+ virtual void notifyAll() throw(lang::Exception){
+ }
+ };
+
+ };
+
+}}
+
+#endif /*_DECAF_IO_FILTERINPUTSTREAMTEST_H_*/
Added:
activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterOutputStreamTest.cpp
URL:
http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterOutputStreamTest.cpp?rev=591622&view=auto
==============================================================================
---
activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterOutputStreamTest.cpp
(added)
+++
activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterOutputStreamTest.cpp
Sat Nov 3 06:48:05 2007
@@ -0,0 +1,110 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "FilterOutputStreamTest.h"
+#include <decaf/io/ByteArrayOutputStream.h>
+#include <decaf/io/ByteArrayInputStream.h>
+
+using namespace std;
+using namespace decaf;
+using namespace decaf::lang;
+using namespace decaf::io;
+using namespace decaf::util;
+
+////////////////////////////////////////////////////////////////////////////////
+void FilterOutputStreamTest::testConstructor() {
+
+ try {
+ ByteArrayOutputStream baos;
+ FilterOutputStream os( &baos );
+ os.write( 't' );
+ } catch( IOException& e ) {
+ CPPUNIT_FAIL("Constructor test failed : " + e.getMessage());
+ }
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void FilterOutputStreamTest::testClose() {
+
+ try {
+ ByteArrayOutputStream baos;
+ FilterOutputStream os( &baos );
+ os.write( (unsigned char*)&testString[0], 500 );
+ os.flush();
+ CPPUNIT_ASSERT_MESSAGE( "Bytes not written after flush",
+ 500 == baos.getByteArraySize() );
+ os.close();
+ } catch( IOException& e ) {
+ CPPUNIT_FAIL("Close test failed : " + e.getMessage());
+ }
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void FilterOutputStreamTest::testFlush() {
+
+ try {
+ ByteArrayOutputStream baos;
+ FilterOutputStream os( &baos );
+ os.write( (unsigned char*)&testString[0], 500 );
+ os.flush();
+ CPPUNIT_ASSERT_MESSAGE( "Bytes not written after flush",
+ 500 == baos.getByteArraySize() );
+ os.close();
+ } catch( IOException& e ) {
+ CPPUNIT_FAIL("Flush test failed : " + e.getMessage());
+ }
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void FilterOutputStreamTest::testWrite1() {
+
+ try {
+ ByteArrayOutputStream baos;
+ FilterOutputStream os( &baos );
+ os.write( (unsigned char*)&testString[0], testString.size() );
+ ByteArrayInputStream bais( baos.getByteArray(),
baos.getByteArraySize() );
+ os.flush();
+ CPPUNIT_ASSERT_MESSAGE( "Bytes not written after flush",
+ bais.available() == testString.length() );
+ unsigned char* wbytes = new unsigned char[ testString.length() ];
+ bais.read( wbytes, testString.length() );
+ CPPUNIT_ASSERT_MESSAGE("Incorrect bytes written",
+ testString == string( (const char*)wbytes, testString.length() ) );
+
+ delete wbytes;
+ } catch( IOException& e ) {
+ CPPUNIT_FAIL("Write test failed : " + e.getMessage());
+ }
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void FilterOutputStreamTest::testWrite2() {
+
+ try {
+ ByteArrayOutputStream baos;
+ FilterOutputStream os( &baos );
+ os.write('t');
+ ByteArrayInputStream bais( baos.getByteArray(),
baos.getByteArraySize() );
+ os.flush();
+ CPPUNIT_ASSERT_MESSAGE( "Byte not written after flush", 1 ==
bais.available() );
+ unsigned char wbytes[1];
+ bais.read( wbytes, 1 );
+ CPPUNIT_ASSERT_MESSAGE("Incorrect byte written", 't' == wbytes[0] );
+ } catch( IOException& e ) {
+ CPPUNIT_FAIL("Write test failed : " + e.getMessage());
+ }
+}
Added:
activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterOutputStreamTest.h
URL:
http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterOutputStreamTest.h?rev=591622&view=auto
==============================================================================
---
activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterOutputStreamTest.h
(added)
+++
activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/FilterOutputStreamTest.h
Sat Nov 3 06:48:05 2007
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _DECAF_IO_FILTEROUTPUTSTREAMTEST_H_
+#define _DECAF_IO_FILTEROUTPUTSTREAMTEST_H_
+
+#include <cppunit/TestFixture.h>
+#include <cppunit/extensions/HelperMacros.h>
+
+#include <decaf/lang/Exception.h>
+#include <decaf/io/FilterOutputStream.h>
+
+namespace decaf{
+namespace io{
+
+ class FilterOutputStreamTest : public CppUnit::TestFixture {
+
+ CPPUNIT_TEST_SUITE( FilterOutputStreamTest );
+ CPPUNIT_TEST( testConstructor );
+ CPPUNIT_TEST( testClose );
+ CPPUNIT_TEST( testFlush );
+ CPPUNIT_TEST( testWrite1 );
+ CPPUNIT_TEST( testWrite2 );
+ CPPUNIT_TEST_SUITE_END();
+
+ std::string testString;
+
+ public:
+
+ FilterOutputStreamTest() {}
+ virtual ~FilterOutputStreamTest() {}
+ virtual void setUp(){
+ testString =
"Test_All_Tests\nTest_decaf_io_BufferedInputStream\nTest_BufferedOutputStream\nTest_decaf_io_ByteArrayInputStream\nTest_decaf_io_ByteArrayOutputStream\nTest_decaf_io_DataInputStream\nTest_decaf_io_File\nTest_decaf_io_FileDescriptor\nTest_decaf_io_FileInputStream\nTest_decaf_io_FileNotFoundException\nTest_decaf_io_FileOutputStream\nTest_decaf_io_FilterInputStream\nTest_decaf_io_FilterOutputStream\nTest_decaf_io_InputStream\nTest_decaf_io_IOException\nTest_decaf_io_OutputStream\nTest_decaf_io_PrintStream\nTest_decaf_io_RandomAccessFile\nTest_decaf_io_SyncFailedException\nTest_decaf_lang_AbstractMethodError\nTest_decaf_lang_ArithmeticException\nTest_decaf_lang_ArrayIndexOutOfBoundsException\nTest_decaf_lang_ArrayStoreException\nTest_decaf_lang_Boolean\nTest_decaf_lang_Byte\nTest_decaf_lang_Character\nTest_decaf_lang_Class\nTest_decaf_lang_ClassCastException\nTest_decaf_lang_ClassCircularityError\nTest_decaf_lang_ClassFormatError\nTest_decaf_lang_ClassLo
ader\nTest_decaf_lang_ClassNotFoundException\nTest_decaf_lang_CloneNotSupportedException\nTest_decaf_lang_Double\nTest_decaf_lang_Error\nTest_decaf_lang_Exception\nTest_decaf_lang_ExceptionInInitializerError\nTest_decaf_lang_Float\nTest_decaf_lang_IllegalAccessError\nTest_decaf_lang_IllegalAccessException\nTest_decaf_lang_IllegalArgumentException\nTest_decaf_lang_IllegalMonitorStateException\nTest_decaf_lang_IllegalThreadStateException\nTest_decaf_lang_IncompatibleClassChangeError\nTest_decaf_lang_IndexOutOfBoundsException\nTest_decaf_lang_InstantiationError\nTest_decaf_lang_InstantiationException\nTest_decaf_lang_Integer\nTest_decaf_lang_InternalError\nTest_decaf_lang_InterruptedException\nTest_decaf_lang_LinkageError\nTest_decaf_lang_Long\nTest_decaf_lang_Math\nTest_decaf_lang_NegativeArraySizeException\nTest_decaf_lang_NoClassDefFoundError\nTest_decaf_lang_NoSuchFieldError\nTest_decaf_lang_NoSuchMethodError\nTest_decaf_lang_NullPointerException\nTest_decaf_lang_Number\nTe
st_decaf_lang_NumberFormatException\nTest_decaf_lang_Object\nTest_decaf_lang_OutOfMemoryError\nTest_decaf_lang_RuntimeException\nTest_decaf_lang_SecurityManager\nTest_decaf_lang_Short\nTest_decaf_lang_StackOverflowError\nTest_decaf_lang_String\nTest_decaf_lang_StringBuffer\nTest_decaf_lang_StringIndexOutOfBoundsException\nTest_decaf_lang_System\nTest_decaf_lang_Thread\nTest_decaf_lang_ThreadDeath\nTest_decaf_lang_ThreadGroup\nTest_decaf_lang_Throwable\nTest_decaf_lang_UnknownError\nTest_decaf_lang_UnsatisfiedLinkError\nTest_decaf_lang_VerifyError\nTest_decaf_lang_VirtualMachineError\nTest_decaf_lang_vm_Image\nTest_decaf_lang_vm_MemorySegment\nTest_decaf_lang_vm_ROMStoreException\nTest_decaf_lang_vm_VM\nTest_decaf_lang_Void\nTest_decaf_net_BindException\nTest_decaf_net_ConnectException\nTest_decaf_net_DatagramPacket\nTest_decaf_net_DatagramSocket\nTest_decaf_net_DatagramSocketImpl\nTest_decaf_net_InetAddress\nTest_decaf_net_NoRouteToHostException\nTest_decaf_net_PlainDatagram
SocketImpl\nTest_decaf_net_PlainSocketImpl\nTest_decaf_net_Socket\nTest_decaf_net_SocketException\nTest_decaf_net_SocketImpl\nTest_decaf_net_SocketInputStream\nTest_decaf_net_SocketOutputStream\nTest_decaf_net_UnknownHostException\nTest_decaf_util_ArrayEnumerator\nTest_decaf_util_Date\nTest_decaf_util_EventObject\nTest_decaf_util_HashEnumerator\nTest_decaf_util_Hashtable\nTest_decaf_util_Properties\nTest_decaf_util_ResourceBundle\nTest_decaf_util_tm\nTest_decaf_util_Vector\n";
+ }
+ virtual void tearDown(){}
+
+ void testConstructor();
+ void testClose();
+ void testFlush();
+ void testWrite1();
+ void testWrite2();
+
+ };
+
+}}
+
+#endif /*_DECAF_IO_FILTEROUTPUTSTREAMTEST_H_*/
Modified: activemq/activemq-cpp/decaf/trunk/src/test/testRegistry.cpp
URL:
http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/test/testRegistry.cpp?rev=591622&r1=591621&r2=591622&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/test/testRegistry.cpp (original)
+++ activemq/activemq-cpp/decaf/trunk/src/test/testRegistry.cpp Sat Nov 3
06:48:05 2007
@@ -18,6 +18,10 @@
// All CPP Unit tests are registered in here so we can disable them and
// enable them easily in one place.
+#include <decaf/io/FilterInputStreamTest.h>
+CPPUNIT_TEST_SUITE_REGISTRATION( decaf::io::FilterInputStreamTest );
+#include <decaf/io/FilterOutputStreamTest.h>
+CPPUNIT_TEST_SUITE_REGISTRATION( decaf::io::FilterOutputStreamTest );
#include <decaf/io/BufferedInputStreamTest.h>
CPPUNIT_TEST_SUITE_REGISTRATION( decaf::io::BufferedInputStreamTest );
#include <decaf/io/BufferedOutputStreamTest.h>