Re: How to test a junit test case against multiple value of a property

2010-07-26 Thread shailja kumari
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

How to test a junit test case against multiple value of a property

2010-07-26 Thread shailja kumari
Hi All, I've got a class whose behavior changes based on a boolean property. This property is read in the static block of the class. Is there a way to write test JUnit testcase that can verify the behavior of the class for both the values of this property? If I specify the value in build.xml, I