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...
18823
Lasse Koskela
lassekoskela
Feb 1, 2007 12:41 pm
Hello Narasimha, ... Note that Elliotte's example is not an example of using J.B.'s ParameterizedTestCase but an example of implementing the Parameterized ...
18824
Narasimha_Tadepalli@...
tn_rao
Feb 1, 2007 5:32 pm
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...
18825
J. B. Rainsberger
nails762
Feb 1, 2007 8:06 pm
... 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...
18826
Narasimha_Tadepalli@...
tn_rao
Feb 1, 2007 10:57 pm
No Problem at all. But could you post me here if you have any other new articles on JUnit framework or Testing . -Narasimha ________________________________ ...
18827
David Saff
dsaff
Feb 2, 2007 12:01 am
Markus, Have you tried going to http://sourceforge.net/project/showfiles.php?group_id=15278 and clicking on "Show older releases"? Thanks, David Saff...
18828
markuspeterbaum
Feb 2, 2007 11:53 am
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...
18829
David Saff
dsaff
Feb 2, 2007 3:16 pm
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...
18830
David Saff
dsaff
Feb 2, 2007 6:18 pm
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...
18831
J. B. Rainsberger
nails762
Feb 2, 2007 8:11 pm
... 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...
18832
Libby
libbychantel
Feb 6, 2007 6:23 pm
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...
18833
Kamal Ahmed
kamal2222ahmed
Feb 7, 2007 4:31 pm
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...
18834
Gabriel Nascimento
gamnascimento@...
Feb 7, 2007 10:29 pm
What is the best approach for testing private methods? Thanks, Gabriel [Non-text portions of this message have been removed]...
18835
Stephen Smith
steve@...
Feb 7, 2007 10:46 pm
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....
18836
Elliotte Harold
elharo@...
Feb 8, 2007 12:17 am
... 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...
On 2/7/07, Elliotte Harold <elharo@...> wrote: Stephen Smith ... Here is another correct answer :-) If it can break, it probably needs to be...
18838
Gabriel Nascimento
gamnascimento@...
Feb 8, 2007 7:03 am
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...
18839
Bob Evans
objecter
Feb 8, 2007 2:35 pm
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...
18840
Jim Cakalic
jim_cakalic
Feb 8, 2007 3:03 pm
... it. ... the unit ... API. So ... Gabriel, I've found this article by Bill Venners to be a reasonably balanced discussion of this topic. ...
18841
Michael Feathers
mfeathers256
Feb 8, 2007 3:15 pm
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...
18842
Kent Beck
kentlbeck
Feb 8, 2007 11:23 pm
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 ...
18843
Gabriel Nascimento
gamnascimento@...
Feb 8, 2007 11:40 pm
The problem is that my domain model has an abstract class Domain with an abstract method validate(). The subclasses of Domain implements validate, calling...
18844
Ole Ersoy
ole_ersoy
Feb 9, 2007 5:45 am
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...
18845
Joel Altman
jaltman77096
Feb 9, 2007 2:51 pm
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...
18846
J. B. Rainsberger
nails762
Feb 9, 2007 7:41 pm
... 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...
18847
J. B. Rainsberger
nails762
Feb 9, 2007 7:50 pm
... 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...
18848
J. B. Rainsberger
nails762
Feb 9, 2007 7:51 pm
... 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...
18849
Mark Levison
marklevison
Feb 9, 2007 8:05 pm
... 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)...
18850
James P. Gunderson
jpg3u
Feb 9, 2007 8:29 pm
All; In our shop, we do not do Test Driven Design (gasp!, Heretic! Burn them! ... established design methodology, and (relatively good) tool support for ...
18851
Kevin Lawrence
kevinwilliam...
Feb 9, 2007 9:53 pm
... 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...