Elliotte, Parameterized tests violate an assumption in JUnit that some of which JUnit GUIs depend on, that tests can be uniquely identified by a class and...
Kent, The @Factory (Runner) annotion looks very useful. It would give, for example, a hook to load the test in a custom classloader. This could have been done...
... The book _JUnit Recipes_ can offer you some help here. As for your first test, answer two questions: 1. How do you send a message? What has to happen in...
... Is the code already written, or are you practicing TDD to write new features? How much /experience/ do the other 3 people have with JUnit already? -- J. B....
... I looked at your reply, the code, your reply, what I wrote, the code, your reply, the code... then concluded I was drunk when I replied to you. Sorry about...
... I quite like this, Kent. It makes me happy to move my data-driven tests back from Fit RowFixtures into JUnit. Take care. -- J. B. (Joe) Rainsberger Diaspar...
Kent, I like that it will be again possible to dynamically generate test data and I believe it is a good change to introduce constructor with test parameters...
Hi Ritesh, Thanks for your reply but I was using that book. I needed some other book which tells more along with good number of examples. If I find such book I...
Eugene, Thank you for your comments. Followup below-- ... I think the performance problems can be solved other ways, and I still like encouraging test...
Hi Kent, Please see my comments below. regards, Eugene ... As I mentioned, passing params in the constructor assume that all test methods require the same...
I have written a JUnit extension to wrap a simple test case, used to run to test for a fixed number of iterations. * It prints total and average execution...
... In my experience, it's pretty rare to see the same test take either a very short time or a very long time depending on the data you give it. Typically, the...
Hi, I've been interested in using J-unit for globalization testing. I have used J-Unit before, but never in this way. I want to use J-Unit to verify Japanese...
Cedric, If I need different sets of parameters for different tests, I put the tests in different classes. This way, tests don't see parameters they don't need....
Eugene, I agree that Iterator isn't the right interface. AbstractCollection or AbstractList would be better. They would allow you to count the elements without...
Hi Kent, ... Well, that's certainly the way it works in JUnit3, but I thought the whole point behind the parameterized proposal was to allow tests to receive ...
Cedric, I think there's a lot of room for different ways of organizing tests. For me, it's good for JUnit 4 to keep the one-class-instance-per-test philosophy...
David, Kent, I agree that one-class-instance-per-test is a good enforcement (as long as it does not cause performance issues). Usually it is also practical to...
speedracer, Do you expect these tests to fail (with non-corrupted data), or do you expect them to pass, but the corruption causes them to fail? If the second,...
Hi David, ... I'm not sure I see the connection between "a new instance per method call" and "parameters for test methods". How does one exclude the other? ...
Hellow, I've tried to test my simple gui with jfcUnit. However, when I try: NamedComponentFinder finder = new NamedComponentFinder(PlayingGui.class, "play"); ...
Hi, We are going to use Eclipse in integration with Jcoverage & Junit.Also we want to run Junit test cases with the Suites. Problem/Query: How can we get the...
Eugene, I don't organize my tests with one test class per model class. Instead, I have one test class per fixture. For example, if I wanted to test with both...
Hi Kent, Are you suggesting that groupping test classes per fixture will be the only supported option in JUnit4? I'd say that this could be ok for small...
... This has always been how JUnit is designed and intended to be used. That said, many testers and test suites (including myself and my suites, and apparently...
Elliotte Harold
elharo@...
Oct 5, 2005 11:40 pm
15070
Or perhaps what we need is some nice Eclipse refactorings that move test methods into new classes. -- Elliotte Rusty Harold elharo@... XML in a...
Elliotte Harold
elharo@...
Oct 5, 2005 11:41 pm
15071
... Like there is not enough classes around... :-) Actually there is a better approaches (still not as nice as one test per class). I've requested for...