mirror of https://github.com/apache/activemq.git
patched code generation so that the unit tests work fine
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@379406 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9ab62d35f4
commit
628f9af1e1
|
@ -90,7 +90,7 @@ for (pkg in jclass.importedPackages) {
|
|||
}
|
||||
|
||||
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";
|
||||
}
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ for (pkg in jclass.importedPackages) {
|
|||
}
|
||||
|
||||
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 @@ for (property in properties) {
|
|||
def type = property.type.simpleName
|
||||
def cached = isCachedProperty(property);
|
||||
def propertyName = property.simpleName;
|
||||
if (testSize == "-1") continue
|
||||
|
||||
out << " "
|
||||
switch (type) {
|
||||
|
|
Loading…
Reference in New Issue