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...
... Weird. assertEquals() appears only to compare the whole parts. public class DoubleTest { @Test public void unequalDoubleValueObjectsShouldBeUnequal() { ...
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...
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,...
20517
idan72
ishai@...
Jun 5, 2008 11:21 am
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:...
... 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...
... 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...
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,...
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...
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...
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...
... Please consider reading the JUnit FAQ document. It contains many very useful examples and techniques. For example, the there is a section just about...
... 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...
... 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...
Nattapong, The situation is confusing. AssertEquals() started out just using equals(). Then people were surprised by this behavior for a variety of special...
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 ...
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...
... 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,...
... 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...
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...
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 ...
... 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...
... 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...
... 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...
... 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...
... 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...
... 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...