Junit Test suite
in a class,create a method called:
public static junit.framework.Test suite(){
TestSuite suite = new TestSuite('Test for upload');
//$JUnit-BEGIN$
suite.addTest(new TestSuite(HtmlFileUploaderTest.class));
suite.addTest(new TestSuite(NonHtmlFileUploaderTest.class));
suite.addTest(new TestSuite(UploaderValidationTests.class));
suite.addTest(new TestSuite(CreateNewTest.class));
//$JUnit-END$
return suite;
}
A TestSuite can extract the tests to be run automatically. To do so you pass the class of your TestCase class to the TestSuite constructor( like: new TestSuite(HtmlFileUploaderTest.class) etc.)
suite is the entry point of program, just like main()
in each class,extends junit.framework.TestCase and let each test method start with testXXXX() and optionally use setUp() and tearDown()
Add a comment
You are not allowed to comment on this entry as it has restricted commenting permissions.