|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.betwixt.xmlunit.XmlTestCase
org.apache.commons.betwixt.AbstractTestCase
org.apache.commons.betwixt.TestClassProperty
public class TestClassProperty
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
#org.apache.commons.betwixt.strategy.PropertySupressionStretegywas
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
testHasClassElementWithDotBetwixtFile()would fail. There was a
small block in ElementRulethat
was marked with ToDo, without that block it works.
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.betwixt.AbstractTestCase |
|---|
basedir |
| Fields inherited from class org.apache.commons.betwixt.xmlunit.XmlTestCase |
|---|
debug |
| Constructor Summary | |
|---|---|
TestClassProperty(java.lang.String testName)
|
|
| Method Summary | |
|---|---|
void |
testHasClassElementWithDotBetwixtFile()
|
void |
testHasClassElementWithoutDotBetwixtFile()
|
| Methods inherited from class org.apache.commons.betwixt.AbstractTestCase |
|---|
createBean, getTestFile, getTestFileURL |
| Methods inherited from class org.apache.commons.betwixt.xmlunit.XmlTestCase |
|---|
createDocumentBuilder, getDomFactory, isValid, parseFile, parseString, parseString, validateWithSchema, xmlAssertIsomorphic, xmlAssertIsomorphic, xmlAssertIsomorphic, xmlAssertIsomorphic, xmlAssertIsomorphicContent, xmlAssertIsomorphicContent, xmlAssertIsomorphicContent, xmlAssertIsomorphicContent, xmlAssertIsValid, xmlAssertIsValid |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TestClassProperty(java.lang.String testName)
| Method Detail |
|---|
public void testHasClassElementWithoutDotBetwixtFile()
throws java.lang.Exception
java.lang.Exception
public void testHasClassElementWithDotBetwixtFile()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||