ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1090366 - /ant/core/trunk/src/tests/antunit/filters/expandproperties-test.xml
Date Fri, 08 Apr 2011 17:54:50 GMT
Author: mbenson
Date: Fri Apr  8 17:54:50 2011
New Revision: 1090366

URL: http://svn.apache.org/viewvc?rev=1090366&view=rev
Log:
add basic functionality test for expandproperties filter

Added:
    ant/core/trunk/src/tests/antunit/filters/expandproperties-test.xml   (with props)

Added: ant/core/trunk/src/tests/antunit/filters/expandproperties-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/filters/expandproperties-test.xml?rev=1090366&view=auto
==============================================================================
--- ant/core/trunk/src/tests/antunit/filters/expandproperties-test.xml (added)
+++ ant/core/trunk/src/tests/antunit/filters/expandproperties-test.xml Fri Apr  8 17:54:50
2011
@@ -0,0 +1,39 @@
+<?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 default="antunit" xmlns:au="antlib:org.apache.ant.antunit">
+  <import file="../antunit-base.xml" />
+
+  <property name="foo" value="FOO" />
+  <property name="bar" value="BAR" />
+  <property name="baz" value="BAZ" />
+
+  <target name="testClassic">
+    <au:assertTrue>
+      <resourcesmatch>
+        <string value="FOO BAR BAZ" />
+        <concat>
+          <string value="$${foo} $${bar} $${baz}" />
+          <filterchain>
+            <expandproperties />
+          </filterchain>
+        </concat>
+      </resourcesmatch>
+    </au:assertTrue>
+  </target>
+
+</project>

Propchange: ant/core/trunk/src/tests/antunit/filters/expandproperties-test.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message