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...
19310
Colin Vipurs
zodiac_zx6
May 1, 2007 9:29 am
Take a look at JUnitFactory from Agitar- www.junitfactory.com <http://www.junitfactory.com/> . I agree with what Stephen said about not testing simple...
19311
Marvin Toll
y153446
May 1, 2007 1:32 pm
Stephen, The document "TestUtil: By Example" chronicles the testing of accessors on a project at a Fortune Five (5) company. ...
19312
David Saff
dsaff
May 1, 2007 1:47 pm
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...
19313
Marvin Toll
y153446
May 1, 2007 2:13 pm
TestUtil does precisely what you are looking for. http://gtcgroup.com/util/index.html _Marvin ... using ... tf3669734.html#a10253752...
19314
gabrielcooper
May 1, 2007 4:07 pm
... 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...
19315
James Abley
taboozizi
May 2, 2007 1:41 pm
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 /...
19316
Alexandru Popescu ...
alexpopescu7...
May 2, 2007 3:09 pm
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...
19317
David Saff
dsaff
May 2, 2007 6:16 pm
Gabriel, ... I was unclear in my wording. We're still considering whether to include LightweightParameters directly into the core JUnit, or using a different...
19318
albsavoia
May 2, 2007 11:38 pm
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": ...
19319
Lasse Koskela
lassekoskela
May 3, 2007 4:51 am
Hi Alberto, ... This is excellent stuff. I'm loving it! Lasse...
19320
Michael Schechter
mlschechter
May 3, 2007 11:12 pm
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 ...
19321
Thomas L Roche
tlroche
May 4, 2007 4:11 am
... Me too. ... I went that way first. So for now at least, I'm sticking with JUnit3....
19322
Robert Wenner
robertwenner
May 4, 2007 4:23 am
... 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...
19323
Marvin D. Toll
y153446
May 4, 2007 11:59 am
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...
19324
xsli2
May 8, 2007 9:07 pm
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...
19325
melvinmah
May 9, 2007 6:31 am
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...
19326
elmoseeriksen
May 9, 2007 11:21 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...
19327
Lasse Koskela
lassekoskela
May 9, 2007 10:24 pm
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...
19328
David Jackman
djackmanq
May 10, 2007 2:45 pm
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...
19329
elmoseeriksen
May 10, 2007 9:49 pm
Ah great! Thanks :o)...
19330
elmoseeriksen
May 10, 2007 9:49 pm
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...
19331
Andrew McDonagh
andy_ipaccess
May 10, 2007 10:05 pm
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,...
19332
Stephen Smith
steve@...
May 10, 2007 11:50 pm
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...
19333
David Saff
dsaff
May 11, 2007 2:19 am
Louise, The unstated assumption in the article is that along with the abstract class Source there is a concrete class InstanceMessageSource, whose test could...
19334
J. B. Rainsberger
nails762
May 11, 2007 8:12 am
... 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...
19335
J. B. Rainsberger
nails762
May 11, 2007 8:14 am
... 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...
19336
J. B. Rainsberger
nails762
May 11, 2007 8:16 am
... 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...
19337
J. B. Rainsberger
nails762
May 11, 2007 8:25 am
... 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...
19338
J. B. Rainsberger
nails762
May 11, 2007 8:27 am
... 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...