Hi Nuwan, I was thinking that even though these exceptions are not explicitly handled, throwing the specific exception will make the code more understandable for someone who reads these test cases. Anyway the reasons you mentioned seem to be more important.
Thank you. On Tue, Sep 8, 2015 at 11:05 AM, Manuri Amaya Perera <[email protected]> wrote: > Hi, > > I got to know it is recommended to throw Exception in test methods instead > of the specific sub class of it. But generally in methods the good practice > is to throw the exception of the specific sub class. > > I'd like to know $subject. > > Thank you. > > -- > > *Manuri Amaya Perera* > > *Software Engineer* > > *WSO2 Inc.* > > *Blog: http://manuriamayaperera.blogspot.com > <http://manuriamayaperera.blogspot.com>* > -- *Manuri Amaya Perera* *Software Engineer* *WSO2 Inc.* *Blog: http://manuriamayaperera.blogspot.com <http://manuriamayaperera.blogspot.com>*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
