... Which IDE do you use? In Eclipse, a method is marked with a little arrow indicating "I override a method up there". In this case, not seeing the little...
... BTW: AssertionFailedError just means the test failed. If you say a test "throws an exception" we'll usually think you mean some exception from your...
... IMHO, this is a bad approach. You are creating a Class just to wrap the functionality of another class. Later on, if the base class needs to be modified,...
... [snip] Giving us the code may have made it a bit easier to answer your question. Nevertheless, here goes: My short answer is that I think you are going...
Perhaps you could write a TestRunner Decorator. Just wrap whatever TestRunner your are using with your own. Overide addError and addFailure.to add in your...
use assert like this assertEquals("not equal",object1.getClass(),object2.getClass()) Daniel Zwink <daniel.zwink@...> wrote: Hi, I'm new in testing with...
anil kumar
anil3379@...
Mar 1, 2005 6:24 pm
12984
I have to disagree. In the ideal world, we should test everything that is testable. Why would you *not* want to test a protected class? Matt Metlis...
use assertEquals("failure",object1.getClass(),object2.getClass()); it is working check once. "J. B. Rainsberger" <jbrains@...> wrote: ... BTW:...
anil kumar
anil3379@...
Mar 1, 2005 6:25 pm
12986
... assertEquals(object1, object2) is also correct, the message doesn't affect the result. (See the JUnit source code.) Checking the class does something...
Maybe I misread Ty, but it sounds like he was implying that it was necessary to decide why you even needed a protected class - not that it should not be...
Of course, not having a message may affect the result of your interactions with other developers. If you don't have a message on your assertions in my...
Hello, I am beginner to this tool. I want to learn from scratch. Will any one from where i wll get Junit install on the system .Sourceforge.net giving error...
I have only been practicing TDD regularly for a few months and am still formulating personal best practices. Having done some reading on the use of the Java...
Hi, Use like this assertEquals("failure",object1.getClass(),object2.getClass()); or assertEquals("failure",object1.hashCode(),object2.hashCode()); for sencond...
anil kumar
anil3379@...
Mar 2, 2005 5:05 pm
12995
It looks like this class "MyClass" has two tasks. It performs some operation on a list which is to be tested and I assume "MyClass" has other responsibilities...
Heh, to quote Yogi Berra, "It's like Deja Vu all over again" Just like the test name often needs further clarification (never pass up an oportunity for...
For my JUnit tests I need to modify the system time. Instead of doing this manually by changing the OS clock I would like to change the clock programatically...
... Sounds like your tests may be driving your design -- that's a good thing. I have two similar ideas: 1. Consider creating your class with a DateProvider for...
Hi, ... Repeating your answer does not make it right. Robert -- Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS GMX bietet bis zu 100 FreeSMS/Monat:...
... It's OK, Kevin; you can just summarize. I know the issues, and I'm not trying to force you to type too much. ... I don't know. I just wrote this in an...
On Wed, 02 Mar 2005 23:02:46 -0600, J. B. Rainsberger ... Oh, I'm not offended or anything of the sort. I'm just chuckling that you and I specifically have...
I'm looking for a *convenient* way to test code that calls event methods on a callback object. The callback object has an interface similar to that of a SAX...
... Just checking. ... Roughly speaking: Unable to find xpath: //form[@name="demographics"]//input[@type="text" and @name="firstName"] I realize now that you...
... So... at different times you invoke getSomething() and it returns the string collected so far, is that it? That interface is too big. Besides, it's the...