Re: passing arguments to test case while adding them to test suite

"Manan Patel [email protected] [junit]" <[email protected]> Tue, 25 Nov 2014 01:19:18 +0530
Newsgroups gmane.comp.java.junit.user
Message-ID <[email protected]>
Is it the myClass that you want to pass in parameter or you want to pass another class

Sent from my iPad

> On 24-Nov-2014, at 10:29 am, "[email protected] [junit]" <[email protected]> wrote:
> 
> hi all,
> 
> 
> 
> i need help on passing arguments to a test case when i am adding it to test suite.
> 
> for example:
> 
> 
> 
> myClass has a method testingMethod(String arg1, String arg2) which takes 2 arguments as input.
> 
> now i am adding myClass to a test suite using suite.addTest(myClass.class).
> 
> 
> 
> i need to pass 2 string arguments also along with the class name so that the method testingMethod receives the parameter values.
> 
> 
> 
> Kindly help me on this topic.
> 
> Thanks in advance.
> 
> Ishan
> 
>