You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2010/11/17 14:57:22 UTC

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

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();");