I've just been writing some tests for my parameterisation classes, and I'm trying to verify that the right things are being logged. For a quick and dirty...
... Most often a test failure is due to changes made since the last clean run. Yesterday, however, we had a test fail, in Cruise Control, while neither the...
... I think this is possible, but it won't provide a completion solution, thanks to reflection. -- J. B. (Joe) Rainsberger :: http://www.jbrains.info Your...
... <snip /> ... I wouldn't classify this test as fast, because it probably takes longer than 0.1 s to execute. I completely agree that without some kind of...
... Absolutely agreed, Robert. I don't claim that TestNG is bad because it supports integration and system testing. JUnit encouraging a certain style of...
... No... I think Ashcroft used to be called something else, but I can't remember what it was called. Maybe I'm wrong... -- J. B. (Joe) Rainsberger ::...
... I suppose it would be possible to discover test methods with parameters, then search for parameter sources. I wonder what that would look like... ... ...
... Everyone thinks I'm a little slow today. By the way, the "emptyList" constant already exists: Collections.EMPTY_LIST. -- J. B. (Joe) Rainsberger ::...
... This is the same as creating a List and adding each url/error message to the List as you go. Then: assertEquals(Collections.EMPTY_LIST, failedUrls); If...
... When I suggest the Parameterized Test Case pattern, people say it's too complicated. This time, I suggest the "easy way" and someone tells me Parameterized...
... Only since Java 5 though; some of us still have to produce code which works with earlier versions of Java! -- ... [Non-text portions of this message have...
Many wonderful things are in Java 5 that weren't available before. However, Collections.EMPTY_LIST is not one of those things. It's been around since 1.2 I...
... Collections.EMPTY_LIST was introduced in Java 1.2, along with the rest of the Collections API. Exactly how far back do you need to go? You may be thinking...
... <fx:peek/> Gosh. I never knew that. And empty map and set, too. Thanks. Some code-hacking seems likely ... -- Chris "another virtual machine" Dollin ...
... I never suggested packages, Cedric. Separate source trees. Have you been thinking I was suggesting moving tests into different /packages/ all this time? I...
... Sorry, Joe, my mistake. I still think that using directories to emulate groups is not very optimal, though... -- Cédric http://testng.org [Non-text...
... *shrug* It works for me. I can see where it would break down if I felt a need to put one test into multiple groups, but I've never had that desire. -- ...
... If the code had not changed "in months", can you give us more insight on the boundary condition. You must have passed the month boundary before -- is it...
... I don't speak for Kent, but my guess is that it won't be in JUnit, although I am looking at including it in something /else/... look for something in early...
... I thought perhaps there was some miscommunication there, but I could never put my finger on it. Perhaps that was it. ... If I only need one set of disjoint...
Tony, We have no plans to incorporate AssertThat in JUnit. I think it is an interesting idea, but I am not convinced that the additional expressive power is...
I had the same error. Like you, I found the problem to be in my classpath. The "/" vs "\" I think is due to the fact that Sun translated non- standard file...
Note that the following appears to be a partial transcript of the screencast @ http://www.eclipse.org/tptp/home/documents/tutorials/screencasts/tptpJunit.html ...
Is this possible ? My problem is that I have a Unit test that does performance benchmarking of a product. Each test method tests one aspect of the product....
"If you are very new to Java, then please search the web for a tutorial on how to set the CLASSPATH for a Java application" I am very new to Java. I executed...