I am using Junit 4.1 with new style of writing Tests using @Test annotations etc. I have written following class --> EmployeeTest to Test Employee class. ...
17077
J. B. Rainsberger
nails762
Jul 6, 2006 9:31 am
... I read the first hit article. It had so many errors in it, I got sick. -- J. B. (Joe) Rainsberger :: http://www.jbrains.info Your guide to software...
17078
Amudha Karuppannan
akaruppannan@...
Jul 6, 2006 9:33 am
Thanks for your reply Kamal. XML API i meant is ,an actually a method which when called will call a CLI command(this command will be executed in my switch )and...
17079
Andreas Guther
andreasguther
Jul 6, 2006 9:35 am
In case you are interested in testing XML generated by your Java applications, I can recommend XmlUnit. It compare a given XML against an expected XML. ...
17080
David Saff
dsaff
Jul 6, 2006 11:54 am
Pradeep, Which version of Eclipse are you using? The following should work in Eclipse 3.2 without change. Two more questions, if I may: 1) This doesn't look...
17081
Amudha Karuppannan
akaruppannan@...
Jul 6, 2006 12:32 pm
thanks Andreas.Unfortunately,the APIs are not Java apis but a set of apis extended by my switch. AmudhaK ... From: junit@yahoogroups.com...
17082
David Saff
dsaff
Jul 6, 2006 1:00 pm
One more thought: please always respond to messages on the list, not directly to the poster. David Saff...
17083
Harshal Shah
uranshah
Jul 6, 2006 1:10 pm
Andreas, How different is it from comparing two DOM objects? -Thanks Harshal ... -- http://shahharshal.blogspot.com/ [Non-text portions of this message have...
17084
David Saff
dsaff
Jul 6, 2006 1:11 pm
Pradeep, I'm sorry my last message was not more action-oriented. You have two options: A) Upgrade to Eclipse 3.2 B) For your test to work in Eclipse 3.1, you...
17085
Brett L. Schuchert
schuchert
Jul 6, 2006 2:22 pm
Pradeep, I successfully used JUnit 4.1 in Eclipse 3.1.2, here's how: 1. Download JUnit (you've already done that). 2. Add the downloaded JUnit.jar to your...
17086
Andreas Guther
andreasguther
Jul 6, 2006 2:28 pm
Harshal, I think there should be no difference in the comparison. For me it is just the case the methods I am testing write to an XML stream and the most...
17087
Andreas Guther
andreasguther
Jul 6, 2006 2:36 pm
I guess Joe Rainsberger39;s reply has a value point. Using a search engine certainly brings up a lot but not necessarily the most accurate information. It is...
17088
Vijay
vijay_nathani
Jul 6, 2006 2:43 pm
I am posting this message again with some more details. I need help on this issue. I would appreciate if someone helps me. I am designing a course on Testing....
17089
pradeep yadav
pradeep_3diitr
Jul 7, 2006 4:49 am
Hi, Now I am getting a warning - "The jar file junit-4.1.jar has no source attachment" And when I attach the source jar - junit-4.1-src.jar, it fails to...
17090
dmcg123
Jul 7, 2006 8:07 am
I've always thought that in retrospect one of junit (<4)'s worse failings was creating instances of the test classes up front in the suite. This means that *...
17091
Kamal Ahmed
KAhmed@...
Jul 7, 2006 8:15 am
Does it recognize other source files in JUnit 4.1 ? ... From: junit@yahoogroups.com [mailto:junit@yahoogroups.com] On Behalf Of pradeep yadav Sent: Friday,...
17092
dmcg123
Jul 7, 2006 8:16 am
... It looks like this does happen, At least via Eclipse, instances of my test classes are being garbage collected. Again - is this behaviour I can rely on? ...
17093
Alexandru Popescu
alexpopescu7...
Jul 7, 2006 10:20 am
#: DMCG123 changed the world a bit at a time by saying (astral date: 7/7/2006 11:14 AM) :# ... I think that you still need to release all resources in an...
17094
pradeep yadav
pradeep_3diitr
Jul 7, 2006 10:48 am
Hi, When I create JUnit Test Case using File -> New -> Junit test case in the format as was used in JUnit 3.* it runs fine. But when I create a TestCase using...
17095
Harshal Shah
uranshah
Jul 7, 2006 10:57 am
Thanks Andreas. I just wanted to confirm that. -Harshal ... -- http://shahharshal.blogspot.com/ [Non-text portions of this message have been removed]...
17096
Simon Chappell
spchappell
Jul 7, 2006 4:19 pm
I'm firmly of the "less is more" school on this matter. While all of the things that you're suggesting to cover are well and good, I would strongly recommend...
17097
didoss@...
dijdoss
Jul 7, 2006 6:08 pm
I agree. There are a lot of basic JUnit concepts that can be addressed against some basic classes, without having to add the complexity of mocking, and all the...
17098
David Saff
dsaff
Jul 7, 2006 7:25 pm
... Yes, this is designed behavior (as is, in your second message, releasing each test object for potential garbage collection after the test completes). You...
17099
J. B. Rainsberger
nails762
Jul 7, 2006 11:08 pm
... I have to second Simon's assessment. I've taught JUnit in the classroom often enough to have learned the hard way: don't try to teach advanced concepts...
17100
J. B. Rainsberger
nails762
Jul 7, 2006 11:10 pm
... Try comparing DOM objects. They don't implement equals() the way you'd hope they do. That's exactly why XmlUnit exists. -- J. B. (Joe) Rainsberger ::...
17101
Duncan McGregor
dmcg123
Jul 7, 2006 11:11 pm
... Excellent, thank you. It wasn't something that I had seen mentioned in the JUnit 4 write- ups, and for our suite of 700-odd tests, many of which are...
17102
Kent Beck
kentlbeck
Jul 8, 2006 2:31 am
Duncan, It was certainly designed behavior to create the test case instances later. I hadn't thought of the idea, but this does give you the option of ...
17103
Jan Cumps
j_cumps
Jul 8, 2006 7:58 pm
Duncan, ... The one that comes with ant 1.7 (currently from svn) is pretty cool. I'm test driving it for a few months with junit4. It works like a charm. ...
17104
Duncan McGregor
dmcg123
Jul 8, 2006 8:41 pm
... Thanks, I'll give it a go, although we're in the final month before shipping, and not keen to upgrade our whole build. Does the ant task release test for...
17105
Duncan McGregor
dmcg123
Jul 8, 2006 9:10 pm
... Lets hope that statements from the 2 horses mouths encourage test- runners to do the right thing. Thanks Kent and David Duncan...