ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r463000 - in /ant/antlibs/antunit/trunk/src: etc/testcases/antunit.xml etc/testcases/antunit/property.xml tests/junit/org/apache/ant/antunit/AntUnitTest.java
Date Wed, 11 Oct 2006 22:16:01 GMT
Author: mbenson
Date: Wed Oct 11 15:16:00 2006
New Revision: 463000

URL: http://svn.apache.org/viewvc?view=rev&rev=463000
Log:
add failing testcase b/c AntUnit doesn't do what it says

Added:
    ant/antlibs/antunit/trunk/src/etc/testcases/antunit/property.xml   (with props)
Modified:
    ant/antlibs/antunit/trunk/src/etc/testcases/antunit.xml
    ant/antlibs/antunit/trunk/src/tests/junit/org/apache/ant/antunit/AntUnitTest.java

Modified: ant/antlibs/antunit/trunk/src/etc/testcases/antunit.xml
URL: http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/src/etc/testcases/antunit.xml?view=diff&rev=463000&r1=462999&r2=463000
==============================================================================
--- ant/antlibs/antunit/trunk/src/etc/testcases/antunit.xml (original)
+++ ant/antlibs/antunit/trunk/src/etc/testcases/antunit.xml Wed Oct 11 15:16:00 2006
@@ -73,6 +73,13 @@
     </au:antunit>
   </target>
 
+  <target name="testNewProject">
+    <au:antunit>
+      <file file="antunit/property.xml" />
+      <au:plainlistener />
+    </au:antunit>
+  </target>
+
   <property name="reportsdir" location="../../../build/reports"/>
   <target name="antunit-dir">
     <mkdir dir="${reportsdir}"/>

Added: ant/antlibs/antunit/trunk/src/etc/testcases/antunit/property.xml
URL: http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/src/etc/testcases/antunit/property.xml?view=auto&rev=463000
==============================================================================
--- ant/antlibs/antunit/trunk/src/etc/testcases/antunit/property.xml (added)
+++ ant/antlibs/antunit/trunk/src/etc/testcases/antunit/property.xml Wed Oct 11 15:16:00 2006
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project name="property-test" default="all"
+         xmlns:au="antlib:org.apache.ant.antunit">
+
+  <target name="all">
+    <fail>Not a self-contained build file</fail>
+  </target>
+
+  <target name="testFoo">
+    <property name="propertyToSet" value="foo" />
+    <au:assertEquals expected="foo" actual="${propertyToSet}" />
+  </target>
+
+  <target name="testBar">
+    <property name="propertyToSet" value="bar" />
+    <au:assertEquals expected="bar" actual="${propertyToSet}" />
+  </target>
+</project>

Propchange: ant/antlibs/antunit/trunk/src/etc/testcases/antunit/property.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: ant/antlibs/antunit/trunk/src/tests/junit/org/apache/ant/antunit/AntUnitTest.java
URL: http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/src/tests/junit/org/apache/ant/antunit/AntUnitTest.java?view=diff&rev=463000&r1=462999&r2=463000
==============================================================================
--- ant/antlibs/antunit/trunk/src/tests/junit/org/apache/ant/antunit/AntUnitTest.java (original)
+++ ant/antlibs/antunit/trunk/src/tests/junit/org/apache/ant/antunit/AntUnitTest.java Wed
Oct 11 15:16:00 2006
@@ -84,4 +84,8 @@
                                  + "I don't exist.xml since it doesn't exist");
     }
 
+    public void testNewProject() {
+        executeTarget("testNewProject");
+    }
+
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message