Here's an approach I've tried to convince management of the benefit of object level unit tests. I don't know if it has worked yet, and I welcome suggestions...
18041
Kent Beck
kentlbeck
Oct 2, 2006 4:19 am
David, Jason, and all: Thank you for the suggestion. I have checked in a change to handle this. The test case is: @Test public void...
18042
David Saff
dsaff
Oct 2, 2006 1:12 pm
... Because it seems that there are two different, but related, things that the original poster wanted to test: 1) Given that the comparison routine is...
18043
Jason Rogers
jacaetev
Oct 2, 2006 3:22 pm
That seems sufficient to me. ... [Non-text portions of this message have been removed]...
18044
putnam_david_t
Oct 2, 2006 4:08 pm
So the intent of assertEquals(a,b) is to be equivalent to assertTrue(a.equals(b)). ... according ... if they ... contents. ... bad idea. ... generate....
18045
Mike Foley
mike_foley_0...
Oct 2, 2006 7:59 pm
I was working on sending my JUnit tests results from a suite of SOA soap service tests over to Mercury QualityCenter, as QC seems a central repository for test...
18046
j_cumps
Oct 3, 2006 9:11 am
<controversial> I'm still not convinced of the economics of unit testing at the lowest level. I've been lurking this list for quite some time, attended online...
18047
David Saff
dsaff
Oct 3, 2006 1:01 pm
Jan, Thanks for being willing to say something controversial. Let me be sure I'm understanding you. Are you saying one of these two things, or a third thing...
18048
Simon Chappell
spchappell
Oct 3, 2006 1:23 pm
... He he he. Go for it. :-) ... Gotta love theory ... right up until reality smacks it upside the head. ... Now you're talking. ... Me too. ... Yup. ... Of...
18049
j_cumps
Oct 3, 2006 5:53 pm
... sure ... a ... requirements, They need to test that their unit meets the requirement. ... Indeed. ... No. I think this fits in the iterative approach. ... ...
18050
Michael Sullivan
kupci2
Oct 3, 2006 6:19 pm
Just ran across an article by Brian Goetz with some good tips on testing concurrent code: http://www.artima.com/forums/flat.jsp?forum=276&thread=178345...
18051
j_cumps
Oct 3, 2006 6:21 pm
Simon, ... and ... head. ... level. ... Yes, they can. ... test ... Some code might just exist because we've written a test for it. ... get a ... very ... I...
18052
Michael Feathers
mfeathers256
Oct 3, 2006 6:22 pm
... I think that the controversial part of this is that you'd call those system tests "unit tests." Michael Feathers www.objectmentor.com...
18053
Simon Chappell
spchappell
Oct 3, 2006 10:19 pm
... Bravo. You have cut to the heart of the matter. Oh, and he was also basically suggesting that what *we* call unit tests were too low level to worry about. ...
18054
J. B. Rainsberger
nails762
Oct 4, 2006 12:40 am
... As fun as it is to debate controversial topics, until either side of the argument can measure the effect of unit testing in some kind of currency unit, the...
18055
J. B. Rainsberger
nails762
Oct 4, 2006 12:42 am
... Some code might just exist because we've written a requirement for it. This is not a statement about TDD, but rather a statement about removing unneeded...
18056
j_cumps
Oct 4, 2006 4:57 am
... I'm in the *we* group too. But full of doubts if we're doing the right thing. ... Regards, Jan...
18057
Joakim Ohlrogge
j0hlrogge
Oct 4, 2006 7:58 am
I read through Bob's post below and I find it a really interesting and good aproach. We often talk about convincing management and it can be frustrating indeed...
18058
J. B. Rainsberger
nails762
Oct 4, 2006 12:06 pm
... You don't?! I see it all the time. More specifically, I see people acting as though they do /not/ have permission to remove dead code. "If it ain't broke,...
18059
Uma Maheswara.G
gunipati81
Oct 4, 2006 1:13 pm
Hi Guys, I have joined Junit Groups recently and i am working on Junit test cases. Could please tell me the coding standards for JUNIT Testing. --Cheers, ...
18060
Simon Chappell
spchappell
Oct 4, 2006 1:39 pm
... Ahhh, an interesting question. Thank you for caring about such things. There are no coding standards for JUnit users. There are various community agreed...
18061
Joakim Ohlrogge
j0hlrogge
Oct 4, 2006 1:42 pm
... If I think some code needs to be removed I remove it, if I think some code needs to be added I add it, if I think some code needs to be changed I change...
18062
Simon Chappell
spchappell
Oct 4, 2006 2:17 pm
... Ideally, every developer would do that, but we all know that doesn't happen very often. *snip* ... I want to work where you work. You see, many large...
18063
Joakim Ohlrogge
j0hlrogge
Oct 4, 2006 2:34 pm
... After this "culture clash" (not that I haven't seen what you describe here either but maybe to a different extent... here it is more like, none lose their...
18064
Joakim Ohlrogge
j0hlrogge
Oct 4, 2006 2:47 pm
... Yes, those darn project budgets... luckily support and maintainance is free (from the projects perspective) :)...
18065
Simon Chappell
spchappell
Oct 4, 2006 3:29 pm
... That's the root cause of all our testing problems. After all testing is a fairly well understood activity, so the problems come from the environment in...
18066
sharma.ashutosh@...
toashutosh
Oct 4, 2006 3:33 pm
Check the following URL.. http://junit.org <http://junit.org/> you will find the sample code too. regards, Ashutosh ________________________________ From:...
18067
Uma Maheswara.G
gunipati81
Oct 4, 2006 7:42 pm
Simon, Thank you very much :) yes it' true that experience is the right one to get hands on junit. Cheers, Mahesh ... From: Simon Chappell...
18068
Rutherford, Michael
mrutherfurd
Oct 4, 2006 10:42 pm
... In the system I'm currently working on over half the classes were obsolete, POC or due to projects that hadn't gone "live". Half the object model relates...
18069
Mike Foley
mike_foley_0...
Oct 4, 2006 11:47 pm
Hi, So all the various assert methods all return void. How would I go about getting a boolean telling me the result of an assert? I need to do something with...