... Each test needs its own data to be isolated, so the obvious solution is to do this for each test: insertTestData runTest removeTestData After a while, you...
James Cheesman Fri, 30 Apr 2004 09:09:43 +0200 ... You're wrong: separation (e.g. MVC) is at best part of the solution. It is better to *actually* test, i.e....
If you define an interface, what is the best strategy to test all implementing classes. Of course, you will create a specific test class that will test every...
... Google Abstract Test Case, and especially read any hits at c2.com. -- J. B. Rainsberger, Diaspar Software Services http://www.diasparsoftware.com :: +1 416...
... Separation is, however, a majority of the solution. It is easily 80% of the solution, if not more. I hope that readers do not interpret your remark to mean...
Tom Roche Wed Feb 11 2004 5:46 am ("fighting the anti-test-infection") ... Tom Roche Fri 30 Apr 2004 16:12:43 -0400 ... Tom Roche Sunday, May 2, 2004, at...
Guys, Id like to offer these 3 classes for submission. They provide an Interface to implement multiple similar tests. I found them very useful when testing a...
Guys, I have posted 3 files to Files/grouptest which I would like to offer for submission to JUnit. They provide a simple Interface for running multiple...
... Oh yes, I fully agree. It's very effective. It just leaves certain common kinds of holes. Ron Jeffries www.XProgramming.com No one expects the Spanish...
... Thinking it through I have to agree - the long term solution includes separation of GUI from data/control (a la MVC), but testing the GUI is entirely...
Dear All, How to test JunitTestcase without returning any return value such as String,object or boolean. java code: public void Option() { } doesn't return any...
... <snip /> ... Rudeness objection. Dial it down a notch, will you? ... Please lecture someone else about things they already know. <snip /> ... Agreed,...
Ron Jeffries wrote: <snip /> ... Like the ones in Adventures in C#? :) Agreed. -- J. B. Rainsberger, Diaspar Software Services http://www.diasparsoftware.com...
... I hate to burst your bubble, but code is essentially never accepted into JUnit. It's open source in name only. <snip /> ... I haven't looked at your stuff,...
... If your method has no visible behavior, then it must have invisible behavior, otherwise it does nothing. Find the invisible behavior, extract it to its own...
you should create small pieces of code which returns some value and after that you create a bigger code calling the smalls. then you have to create the Junit...
... I often use the Parameterized Test Case instead. Just give an instance of each class as a parameter. It allows me to test several classes that implement...
... Hi J.B. Do you have, or know of, a Java Swing example illustrating this separation structure? A picture paints a thousand words, but code is so much...
... Yes. Someone mentioned that here several months ago and I remember discussing how the two patterns were equivalent. I haven't tried using Parameterized...
... Dave Astels' book, A Practical Guide to Test-Driven Development, develops such an example (and is a fine book besides). Not being a big Swing programmer...
Dear All, I am a new member of this group. I have a question for u people. I have a method which overwrites value of a private variable. This method is public...
W> you should create small pieces of code which returns some value and after W> that you create a bigger code calling the smalls. Another way is to create...
... When you ask, "Is it OK?" in what way do you think it might not be OK? What you propose works, because it tests what you want to test: "Does my method...
... It is generally agreed that ExceptionTestCase is not worth the effort to use it, so you might not find anyone who knows how to use it at all. See ...
... Absolutely. The mock objects approach is based on what Michael describes here: passing in a "spy" object that the method under test operates on, then...