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: [email protected]
For additional commands, e-mail: [email protected]