<project xmlns:au="antlib:org.apache.ant.antunit"> | |
<target name="testAcceptNested"> | |
<echo>foo</echo> | |
</target> | |
<target name="testRejectNested"> | |
<typedef name="object" classname="java.lang.Object" /> | |
<au:expectfailure expectedMessage="The <object> type doesn't support nested text data ("foo")."> | |
<object>foo</object> | |
</au:expectfailure> | |
</target> | |
</project> |