passing arguments to test case while adding them to test suite
| Newsgroups | gmane.comp.java.junit.user |
|---|---|
| Message-ID | <[email protected]> |
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