| This test is the result of a problem I had with outputting a bean's class
property as XML. I had a request for that feature quite a while ago and the
TestClassProperty.org was
added to made this possible. It worked quite well, until I used beans
described in dot-betwixt files that also output the class property like the
following:
<info primitiveTypes="element">
<element name="test-class">
<attribute name="test-prop-1" property="testPropertyOne"/>
<attribute name="test-prop-2" property="testPropertyTwo"/>
<element name="class" property="class"/>
</element>
</info>
So it worked without dot-betwixt files, but the seconds test
TestClassProperty.testHasClassElementWithDotBetwixtFile() would fail. There was a
small block in
org.apache.commons.betwixt.digester.ElementRule that
was marked with ToDo, without that block it works.
author: Christoph Gaffga, cgaffga@triplemind.com |