You can see some here from a recent JUnit course I taught: http://www.cafeaulait.org/slides/catt/junit/52.html and work forward for a few slides -- Elliotte...
Elliotte Harold
elharo@...
Feb 1, 2007 12:03 pm
18823
Hello Narasimha, ... Note that Elliotte's example is not an example of using J.B.'s ParameterizedTestCase but an example of implementing the Parameterized ...
Hi All Thanks for responses. At last I manage to make it work out. Actually in J.B's samples I found two ParameterizedTestSuite classes the one under package...
... I'm glad you were able to find something, and I'm sorry I couldn't help you more. Take care. -- J. B. (Joe) Rainsberger :: http://www.jbrains.ca Your guide...
No Problem at all. But could you post me here if you have any other new articles on JUnit framework or Testing . -Narasimha ________________________________ ...
Markus, Have you tried going to http://sourceforge.net/project/showfiles.php?group_id=15278 and clicking on "Show older releases"? Thanks, David Saff...
Hi David, Thanks for your hint. Yes I've been there and downloaded the zip and I just tried it again to check if I didn't oversee something. But in the zip...
Markus, My bad. You had said as much the first time, but I saw the source directory, and didn't look hard enough. I'm sure that some CVS archeology, if...
Vasu, I'm sorry to be late in a reply--it's been a busy month. The general scenario you describe should work. If you run class D by itself, does everything...
... Whenever I write something new, I mention it at jbrains.ca, so you should subscribe to my weblog to stay up to date. I'm not writing much these days about...
Hello, I am learning JUnit the hard way, I have inherited some code to which I need to add some new testCases. This is in RAD 6.x, which uses JUnit 3.8. As far...
Libby, Try giving the complete path in the "Arguments" TAB in your "run" option Also try using the . DOT Separated path like com.rad.mycompany.test Hope this...
What is the best approach for testing private methods? Thanks, Gabriel [Non-text portions of this message have been removed]...
Gabriel Nascimento
gamnascimento@...
Feb 7, 2007 10:29 pm
18835
Hi Gabriel, This question comes up time and again on the JUnit mailing list, and in my opinion there is no easy answer. There are two common approaches: 01....
Stephen Smith
steve@...
Feb 7, 2007 10:46 pm
18836
... No and no. The correct answer is O3. Test the public methods that call the private method. Do not test the private method directly. If no public methods...
Elliotte Harold
elharo@...
Feb 8, 2007 12:17 am
18837
On 2/7/07, Elliotte Harold <elharo@...> wrote: Stephen Smith ... Here is another correct answer :-) If it can break, it probably needs to be...
I put my test cases in the same logic package and changed the private methods I wanted to test, to protected. So the test case can access it. That´s why I...
Gabriel Nascimento
gamnascimento@...
Feb 8, 2007 7:03 am
18839
Hi Gabriel. As pointed out, you can either peek at the private values, make them more visible, or just exercise the public methods that exercise the private...
So there once was a doctor. A patient came to him and said "Doc, I have these recurring headaches." His response was "Well, Tylenol works." The patient went...
All, At the Agile Open Northwest conference I held an open space session on the future of testing tools. I expected to talk a little about Theories and ...
The problem is that my domain model has an abstract class Domain with an abstract method validate(). The subclasses of Domain implements validate, calling...
Gabriel Nascimento
gamnascimento@...
Feb 8, 2007 11:40 pm
18844
Hi Kent, We had a pretty good discussion around this on this thread: http://www.nabble.com/100---Method-Testing-and-Generating-Unit-Tests-tf2902785.html I...
I noticed your map doesn't include CppUnit. I am not surprised as running CppUnit (Eclipse on Windows with CDT) I found it too flaky to count on. Is this...
... In general, I dislike abstract classes, and what you describe is one of the reasons I dislike them. If I owned the Domain class, I would do this: 1. Move...
... This link timed out for me right now. I don't know who owns the wiki, so I can't let them know. -- J. B. (Joe) Rainsberger :: http://www.jbrains.ca Your...
... I'm beginning to wonder whether we should have separate design and testing tools. This seems to be a serious source of contention among programmers: we...
... This seems elegant - I think there is a role for testing outside of TDD. In those cases I would like automated help in generating data (perhaps even Mocks)...
All; In our shop, we do not do Test Driven Design (gasp!, Heretic! Burn them! ... established design methodology, and (relatively good) tool support for ...
... A couple of years ago, I prototyped something (I called it Test by Example) which you would point at a newly written class and it would construct instances...