users@grizzly.java.net

Re: big questions

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Wed, 21 Apr 2010 18:14:29 +0200

> Does anyone have any objections to me migrating our tests from junit
> to testng? I much prefer testng and we get quite a bit more control
> and features for very little effort. This is probably the least
> contentious of the two but I wanted to throw that out there.
IMO it could be a good idea.
Today I've reworked HTTP SuspendTest in order to test the HTTP
response suspending in the HTTPS mode. And I like the way I was able
to do it using testng @DataProvider, So instead of writing separate
tests for HTTP and HTTPS, we have a single test set driven by
"isSslEnabled" parameter.
Regarding Netbeans support - it could be better for sure. For example
Netbeans test report doesn't distinguish parameterized tests, in my
case in SuspendTest, when each test is being run twice in two
different modes HTTP/HTTPS, Netbeans reports that the test was run
just once, and if HTTP succeeded and HTTPS failed - Netbeans reports
that the test was passed successfully.

WBR,
Alexey.