Author: kevj Date: Mon May 21 23:17:45 2007 New Revision: 540439 URL: http://svn.apache.org/viewvc?view=rev&rev=540439 Log: -test for secureinput handling
Added: ant/core/trunk/src/tests/antunit/taskdefs/input-test.xml Added: ant/core/trunk/src/tests/antunit/taskdefs/input-test.xml URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/input-test.xml?view=auto&rev=540439 ============================================================================== --- ant/core/trunk/src/tests/antunit/taskdefs/input-test.xml (added) +++ ant/core/trunk/src/tests/antunit/taskdefs/input-test.xml Mon May 21 23:17:45 2007 @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<project name="test-input" default="antunit" xmlns:au="antlib:org.apache.ant.antunit"> + + <import file="../antunit-base.xml"/> + + <target name="setUp"> + <available property="jdk1.6+" classname="java.util.ServiceLoader"/> + </target> + + <target name="test-secure-input" if="jdk1.6+"> + <input message="secure-input:>" addproperty="the.password"> + <handler classname="org.apache.tools.ant.input.SecureInputHandler"/> + </input> + <au:assertPropertySet name="the.password"/> + </target> + +</project> \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]