Think it would help in cases where private int x; private int y; int getX() { return this.x } void setX(int value) { this.y = value; } ... -- View this message...
Take a look at JUnitFactory from Agitar- www.junitfactory.com <http://www.junitfactory.com/> . I agree with what Stephen said about not testing simple...
El, Thanks for posting your solution. I'd love to make it so that kind of customization is easier in the future. Would you mind posting a feature request on...
... I believe I did that a month or so ago for this feature. My implementation had the name as the first parameter, not the last (makes for easier readability...
Hi all, I'm looking to use a Mock framework. I was using a home-grown one with a previous employer, but that isn't (yet - I'm hopeful!) open-sourced /...
There are a lot of factors that come into play when evaluating a mock framework. You will probably find these somewhere online (because I am pretty sure...
Gabriel, ... I was unclear in my wording. We're still considering whether to include LightweightParameters directly into the core JUnit, or using a different...
A while back - just for fun - I took a pretty bad pun on Seinfeld's "Festivus" a bit too far and blogged about "Testivus - Unit testing for the rest of us": ...
Kent/David et. al., I have been successfully using a filter implementation that I provided with one or more method names. These methods were the only ones ...
... Some comments: What are hard-coded tests? What does it mean to author them? Do you mean write? Why is the volume of test code a challenge? I'd agree it is...
Robert, Thanks for taking the time and your comments. As mentioned, this is the first "public" exposure of some of these thoughts. "<mdt>" syntax is used to...
Hi, I have received a Eclipse project from my officemate, including junit test classes. I have created a project in my Linux Eclipse and copied everything into...
I am still new trying to design a test case whereby my class file can read this xml file and come out with the necessary results / scenario. Sorry, but I am...
I read the article via the FAQ's about how to test protected/private methods with JUnit, and it works fine for non-inherited methods. But how should i test...
Hi Louise, ... You simply need to do the "getDeclaredMethods()" recursively for all of the parent classes. Here's an example of how you might go about doing...
What bad thing will happen if the test code is in the same package as the classes being tested? I do this all the time; if there's a problem with this...
I read in the FAQ about testing abstract classes, but I do not understand the example given in the link the FAQ refers to. When I e.g. make the test class...
Yes, its normally better to test Abstract classes through their deriving classes. This way you are testing the real classes that are certain to be used,...
Is there much difference between writing a test for an interface and writing a test for an abstract class? For example, writing a test for Map and writing a...
Stephen Smith
steve@...
May 10, 2007 11:50 pm
19333
Louise, The unstated assumption in the article is that along with the abstract class Source there is a concrete class InstanceMessageSource, whose test could...
... It looks like you never got an answer. The GSBase project (gsbase.sourceforge.net) has an OrderedTestSuite class which you can use to declare the order of...
... A very late answer, and perhaps useless, but I use Fraction, since it's geeky enough to be cool and simple enough to be accessible by the whole crowd. It...
... I wrote then that if I'd been able to use JMock 1.x for real before writing the book, my examples would have been with JMock 1.x. I stand by that...
... I think there is a lot of strong opinion, both positive and negative, to the JMock 2 API. Smalltalkers and Rubyists love it, others hate it. It's the most...
... I object again, as I have in the past, to the notion that conviction is dogma. For example, I find that people who disagree with my convictions call me...