ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shailja kumari <shalja.ru...@gmail.com>
Subject Re: How to test a junit test case against multiple value of a property
Date Mon, 26 Jul 2010 11:23:36 GMT

Used testing framework is Junit with Ant, that's the reason of this post. 
Thanks in advance for further help.

>>
extract the property to an external class and then build two 
tests that mocks that class with each value. 
>>

I passed the value of class property to Ant junit task like this

 <property name="JUNIT_PROPERTY.a.b.c"
              value="true" />


<junit>
------
------
 <syspropertyset>
             <propertyref prefix="JUNIT_PROPERTY." />
                <mapper type="glob" from="JUNIT_PROPERTY.*" to="*" />
            </syspropertyset>
</junit>

How can I test my test case on "true" as well as " false" value with the
help of JUNIT_PROPERTY.a.b.c.


-- 
View this message in context: http://ant.1045680.n5.nabble.com/How-to-test-a-junit-test-case-against-multiple-value-of-a-property-tp2227867p2227908.html
Sent from the Ant - Users mailing list archive at Nabble.com.

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


Mime
View raw message