Search the web
Sign In
New User? Sign Up
junit · JUnit, the Java unit testing framework written by Kent Beck and Erich Gamma.
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 20512 - 20541 of 22044   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
20512
Hi, I have test's written in junit4 that run using JUnitTestRunner. I want to add listener that will be called in start and end of each test and also before...
idan72
ishai@...
Send Email
Jun 2, 2008
2:58 pm
20513
Hi, When i try to make an assertion on Number object, e.g. Double the result always assertion successful. Even i try to compare by...
Nattapong Sirilappanich
nat_tul
Offline Send Email
Jun 4, 2008
9:52 am
20514
... Weird. assertEquals() appears only to compare the whole parts. public class DoubleTest { @Test public void unequalDoubleValueObjectsShouldBeUnequal() { ...
J. B. Rainsberger
nails762
Offline Send Email
Jun 4, 2008
2:34 pm
20515
Hi, Would it be possible to have Assert.fail(message, exception) method in future version of the junit. I see this to be very critical for methods failing and...
nagendra.raja
Offline Send Email
Jun 4, 2008
10:22 pm
20516
Hi, I forgot to mention the version number of JUnit. I'm using JUnit 4.3.1 which is part of Eclipse 3.3.2 Best regards, Nattapong Sirilappanich Engineer,...
Nattapong Sirilappanich
nat_tul
Offline Send Email
Jun 5, 2008
9:10 am
20517
Hi, I am running junit4 using ant (1.7.0). How Can I add a listener to junit from ant? Thanks -- View this message in context:...
idan72
ishai@...
Send Email
Jun 5, 2008
11:21 am
20518
... Would it be possible to have Assert.fail(message, exception) method in future version of the junit. I see this to be very critical for methods failing and...
Roger Glover
glover_roger
Online Now Send Email
Jun 5, 2008
10:32 pm
20519
... wrote: On Jun 3, 2008, at 22:41 , Nattapong Sirilappanich wrote: Hi, When i try to make an assertion on Number object, e.g. Double the result always...
Roger Glover
glover_roger
Online Now Send Email
Jun 5, 2008
10:33 pm
20520
Actually, my point here is i'm expecting org.junit.Assert.assertEquals(Object obj1, Object obj2) to call its obj1.equals(obj2) or something like this. However,...
Nattapong Sirilappanich
nat_tul
Offline Send Email
Jun 6, 2008
11:24 am
20521
Sorry about how hosed my last message looked. I used the new "Rich Text Editor (Beta)", which apparently did not play nicely with whatever the moderator was...
Roger Glover
glover_roger
Online Now Send Email
Jun 6, 2008
11:25 am
20522
... As I stated, albeit not very clearly the first time (Curse you "Rich Text Editor(Beta)"!), I suspect that the culprit here is that ...
Roger Glover
glover_roger
Online Now Send Email
Jun 6, 2008
10:02 pm
20523
... That's almost certainly what is happening, and good deduction. Now we ask the question, what's the better answer? Defeat the purpose of ...
J. B. Rainsberger
nails762
Offline Send Email
Jun 7, 2008
12:40 am
20524
Hi Experts, I am new to JUnit. However I have configured and written some simple use cases. Could anybody please tell me how can I write test case for method...
Nishant Karve
mystudygroup
Offline Send Email
Jun 7, 2008
1:58 pm
20525
It's time for a little reminder of some of the finer points of JUnit mailing list etiquette. This will be posted now and then; not often enough to be spam, but...
Simon Chappell
spchappell
Offline Send Email
Jun 7, 2008
2:04 pm
20526
... Please consider reading the JUnit FAQ document. It contains many very useful examples and techniques. For example, the there is a section just about...
Simon Chappell
spchappell
Offline Send Email
Jun 7, 2008
2:11 pm
20527
... Thank you very much! ... Well if that is the best solution (and I must say that I like it better than the status quo) then the easiest way to do that would...
Roger Glover
glover_roger
Online Now Send Email
Jun 8, 2008
9:15 am
20528
... If the method /does/ something (once hopes so), test for that something. ... I'd pour the iterator contents into a list and test the list. Don't we have a...
Chris Dollin
anover_alias
Offline Send Email
Jun 9, 2008
7:52 am
20529
Nattapong, The situation is confusing. AssertEquals() started out just using equals(). Then people were surprised by this behavior for a variety of special...
Kent Beck
kentlbeck
Offline Send Email
Jun 9, 2008
4:46 pm
20530
Roger, This is the solution we came to for 4.5. Interested parties can preview it by checking out the current working version from CVS. Regards, Kent Beck ...
Kent Beck
kentlbeck
Offline Send Email
Jun 9, 2008
4:46 pm
20531
I'd like to make a case for adding logging of assertions into junit. I've been using junit for many years, and something that I've found both for myself and...
Phil Surette
PhilSurette
Offline Send Email
Jun 9, 2008
6:15 pm
20532
... I'm agree with this choice. Since it's not preferred to be used with Double so some Exception should be threw. ... Nattapong Sirilappanich Engineer,...
nat_tul
Offline Send Email
Jun 9, 2008
6:16 pm
20533
... I am just going to be frank here. Yes, many people have said they want to log assertions in tests because they want the warm fuzzy feedback that their...
J. B. Rainsberger
nails762
Offline Send Email
Jun 9, 2008
10:30 pm
20534
Hi J.B, I think the original poster wants a log of all the assertions that are being run. Whether the tests are simple (one assertion per test) or complex is...
Cédric Beust 
cbeust
Offline Send Email
Jun 9, 2008
10:56 pm
20535
Dear Phil, Thank you for the clear case for logging assertions. This feature has been "on the list" for at least eight of the ten years JUnit has been in ...
Kent Beck
kentlbeck
Offline Send Email
Jun 9, 2008
10:57 pm
20536
... I understand what the original poster wants, and I believe the issues are related. I thought I made that clear in my message. ... I understand that. I have...
J. B. Rainsberger
nails762
Offline Send Email
Jun 10, 2008
12:39 am
20537
... Actually, to me this defeats the purpose of JUnit. I want a simple green or red result. If I have to go through umpteen thousand lines of log, I may as...
Robert Wenner
robertwenner
Offline Send Email
Jun 10, 2008
12:51 am
20538
... That's quite puzzling. I can't see how the existence of this feature could ever prevent a developer from writing tests. Again, these are very orthogonal...
Cédric Beust 
cbeust
Offline Send Email
Jun 10, 2008
2:16 am
20539
... Nobody says you have to, but the fact that your tests pass doesn't guarantee that you are testing what you think you are testing. Which is why reports are...
Cédric Beust 
cbeust
Offline Send Email
Jun 10, 2008
2:18 am
20540
... Well. If the log is important, I have to go through it, or I miss something important. If it is not important (and I don't have to go through it) I can...
Robert Wenner
robertwenner
Offline Send Email
Jun 10, 2008
3:34 am
20541
... It's the definition of a log: most of the time, you don't need it, but it's handy if you need to double check something after your tests have run. ... Not...
Cédric Beust 
cbeust
Offline Send Email
Jun 10, 2008
3:57 am
Messages 20512 - 20541 of 22044   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help