activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1036040 - /activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/tests/AmqCppTestMarshallingClassesGenerator.java
Date Wed, 17 Nov 2010 13:57:22 GMT
Author: tabish
Date: Wed Nov 17 13:57:22 2010
New Revision: 1036040

URL: http://svn.apache.org/viewvc?rev=1036040&view=rev
Log:
Fix to ensure the generated tests all compile.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/tests/AmqCppTestMarshallingClassesGenerator.java

Modified: activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/tests/AmqCppTestMarshallingClassesGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/tests/AmqCppTestMarshallingClassesGenerator.java?rev=1036040&r1=1036039&r2=1036040&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/tests/AmqCppTestMarshallingClassesGenerator.java
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/tests/AmqCppTestMarshallingClassesGenerator.java
Wed Nov 17 13:57:22 2010
@@ -129,7 +129,7 @@ out.println("        unsigned char dataT
 out.println("        CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );");
 out.println("        marshaller.looseUnmarshal( &openWireFormat, &inCommand, &dataIn
);");
 out.println("");
-out.println("        CPPUNIT_ASSERT( inCommand.equals( &outCommand ) == true );");
+out.println("        CPPUNIT_ASSERT( inCommand.equals( (DataStructure*) &outCommand )
== true );");
 out.println("");
 out.println("    } catch( ActiveMQException& e ) {");
 out.println("        e.printStackTrace();");
@@ -195,7 +195,7 @@ out.println("        bs.clear();");
 out.println("        bs.unmarshal( &dataIn );");
 out.println("        marshaller.tightUnmarshal( &openWireFormat, &inCommand, &dataIn,
&bs );");
 out.println("");
-out.println("        CPPUNIT_ASSERT( inCommand.equals( &outCommand ) == true );");
+out.println("        CPPUNIT_ASSERT( inCommand.equals( (DataStructure*) &outCommand )
== true );");
 out.println("");
 out.println("    } catch( ActiveMQException& e ) {");
 out.println("        e.printStackTrace();");



Mime
View raw message