Browse Source

fix example

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@372111 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 19 years ago
parent
commit
e97bc25f38
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      xdocs/antlibs/antunit/index.xml

+ 8
- 2
xdocs/antlibs/antunit/index.xml View File

@@ -195,9 +195,9 @@ public class ANTLRTest extends BuildFileTest {

<!-- the actual test case -->
<target name="testTouchCreatesFile">
<au:assertFileDoesntExist name="${foo}"/>
<au:assertFileDoesntExist file="${foo}"/>
<touch file="${foo}"/>
<au:assertFileExists name="${foo}"/>
<au:assertFileExists file="${foo}"/>
</target>
</project>
]]></source>
@@ -214,6 +214,12 @@ public class ANTLRTest extends BuildFileTest {
<p>from a buildfile of its own you'll get a result that looks like</p>

<source><![CDATA[
[au:antunit] Build File: /tmp/touch.xml
[au:antunit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.249 sec
[au:antunit] Target: testTouchCreatesFile took 0.183 sec

BUILD SUCCESSFUL
Total time: 1 second
]]></source>

</section>


Loading…
Cancel
Save