activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r379406 - in /incubator/activemq/trunk/activemq-core/src/gram/script: GenerateJavaMarshalling.groovy GenerateJavaTests.groovy
Date Tue, 21 Feb 2006 10:00:20 GMT
Author: jstrachan
Date: Tue Feb 21 02:00:17 2006
New Revision: 379406

URL: http://svn.apache.org/viewcvs?rev=379406&view=rev
Log:
patched code generation so that the unit tests work fine

Modified:
    incubator/activemq/trunk/activemq-core/src/gram/script/GenerateJavaMarshalling.groovy
    incubator/activemq/trunk/activemq-core/src/gram/script/GenerateJavaTests.groovy

Modified: incubator/activemq/trunk/activemq-core/src/gram/script/GenerateJavaMarshalling.groovy
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/gram/script/GenerateJavaMarshalling.groovy?rev=379406&r1=379405&r2=379406&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/gram/script/GenerateJavaMarshalling.groovy
(original)
+++ incubator/activemq/trunk/activemq-core/src/gram/script/GenerateJavaMarshalling.groovy
Tue Feb 21 02:00:17 2006
@@ -90,7 +90,7 @@
 }
 
 def baseClass = "DataStreamMarshaller"
-if (!jclass.superclass.simpleName.equals("JNDIBaseStorable") && !jclass.superclass.simpleName.equals("Object")
) {
+if (!jclass.superclass.simpleName.equals("JNDIBaseStorable") && !jclass.superclass.simpleName.equals("DataStructureSupport")
&& !jclass.superclass.simpleName.equals("Object") ) {
    baseClass = jclass.superclass.simpleName + "Marshaller";
 }
 

Modified: incubator/activemq/trunk/activemq-core/src/gram/script/GenerateJavaTests.groovy
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/gram/script/GenerateJavaTests.groovy?rev=379406&r1=379405&r2=379406&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/gram/script/GenerateJavaTests.groovy (original)
+++ incubator/activemq/trunk/activemq-core/src/gram/script/GenerateJavaTests.groovy Tue Feb
21 02:00:17 2006
@@ -97,7 +97,7 @@
 }
 
 def baseClass = "DataFileGeneratorTestSupport"
-if (!jclass.superclass.simpleName.equals("JNDIBaseStorable") && !jclass.superclass.simpleName.equals("Object")
) {
+if (!jclass.superclass.simpleName.equals("JNDIBaseStorable") && !jclass.superclass.simpleName.equals("DataStructureSupport")
&& !jclass.superclass.simpleName.equals("Object") ) {
    baseClass = jclass.superclass.simpleName + "Test";
    if (isBaseAbstract) 
        baseClass += "Support"
@@ -147,6 +147,7 @@
     def type = property.type.simpleName
     def cached = isCachedProperty(property);
     def propertyName = property.simpleName;
+    if (testSize == "-1") continue
     
     out << "        "
     switch (type) {



Mime
View raw message