Re: Throwing exception
"David Saff" <[email protected]> Mon, 13 Oct 2008 06:27:27 -0400
| Newsgroups | gmane.comp.java.junit.devel |
|---|---|
| Message-ID | <4f7da6b90810130327x4a48c7b3h3aec778b6f722ba0__44407.1400481791$1223904324$gmane$org@mail.gmail.com> |
[bcc: junit-devel, [email protected]] Anil, 1) Mocking frameworks like jMock are useful for just this kind of interaction testing. 2) Questions about the use of junit are better asked on the user list ([email protected]). Good luck, David Saff On Sun, Oct 12, 2008 at 11:44 PM, <[email protected]> wrote: > Hi, > > Can we throw an exception to the main class from my test class? > We have a few catch statements in our main class, to test them we need to > send those exceptions from test class, so is there any way? > > > Regards, > Anil > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Junit-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/junit-devel > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/