Hi It is always better to throw the Exception(super class) as a best practice when we define a test method rather than throwing the list of particular exceptions since no one will catch those exception and handle explicitly. Then it will ensure that the test method will not break once the methods used within the test method changed and in the test reports It shows the actual Exception class. So It will ease the test classes maintainability.
@Test() public void testMethod() throws *Exception* { ............ } Thanks, Nuwanw -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev