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 12977 - 13006 of 22044   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
12977
... Ask yourself why you would ever need a protected class ever, ever, ever. -- J. B. (Joe) Rainsberger Diaspar Software Services ...
J. B. Rainsberger
nails762
Offline Send Email
Mar 1, 2005
8:08 am
12978
... 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...
J. B. Rainsberger
nails762
Offline Send Email
Mar 1, 2005
8:09 am
12979
... 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...
J. B. Rainsberger
nails762
Offline Send Email
Mar 1, 2005
8:12 am
12980
... 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,...
Harring Figueiredo
harringf
Offline Send Email
Mar 1, 2005
3:27 pm
12981
... [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...
Jason Rogers
jacaetev
Offline Send Email
Mar 1, 2005
3:35 pm
12982
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...
Jeff Waltzer
jeffwaltzer
Offline Send Email
Mar 1, 2005
6:24 pm
12983
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@...
Send Email
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...
Matthew Metlis
mmetlis
Offline Send Email
Mar 1, 2005
6:24 pm
12985
use assertEquals("failure",object1.getClass(),object2.getClass()); it is working check once. "J. B. Rainsberger" <jbrains@...> wrote: ... BTW:...
anil kumar
anil3379@...
Send Email
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...
Robert Wenner
robertwenner
Online Now Send Email
Mar 1, 2005
7:22 pm
12987
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...
Chip Dunning
chipdunning
Offline Send Email
Mar 1, 2005
8:07 pm
12988
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...
Kevin Klinemeier
zipwow
Online Now Send Email
Mar 1, 2005
11:44 pm
12989
... Really. I'm surprised. Doesn't the test case name tell you everything you need to know? -- J. B. (Joe) Rainsberger Diaspar Software Services ...
J. B. Rainsberger
nails762
Offline Send Email
Mar 2, 2005
4:24 am
12990
Yeah, I had thought of that, but I was imagining a TestRunner-independent solution. Todd. ________________________________ From: Jeff Waltzer...
Bradley, Todd
todd404
Offline Send Email
Mar 2, 2005
2:19 pm
12991
On Tue, 1 Mar 2005 20:22:03 +0100 (MET), Robert Wenner ... Seems like instead of overriding Object's equals() method, he overloaded it....
Ken Chien
bigtummy77
Offline Send Email
Mar 2, 2005
5:02 pm
12992
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...
dheerajtandon22
Offline Send Email
Mar 2, 2005
5:03 pm
12993
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...
Tim Kuntz
tckuntz
Offline Send Email
Mar 2, 2005
5:05 pm
12994
Hi, Use like this assertEquals("failure",object1.getClass(),object2.getClass()); or assertEquals("failure",object1.hashCode(),object2.hashCode()); for sencond...
anil kumar
anil3379@...
Send Email
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...
Sumukh
sumukh82g
Offline Send Email
Mar 2, 2005
5:06 pm
12996
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...
Kevin Klinemeier
zipwow
Online Now Send Email
Mar 2, 2005
5:38 pm
12997
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...
haefeleuser
Offline Send Email
Mar 2, 2005
6:34 pm
12998
Don't use the system clock directly. Wrap it in a class that you can manipulate in your tests. Kevin...
Kevin Lawrence
kevinwilliam...
Offline Send Email
Mar 2, 2005
6:43 pm
12999
... 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...
Jason Rogers
jacaetev
Offline Send Email
Mar 2, 2005
7:32 pm
13000
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:...
Robert Wenner
robertwenner
Online Now Send Email
Mar 2, 2005
9:19 pm
13001
... 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...
J. B. Rainsberger
nails762
Offline Send Email
Mar 3, 2005
5:03 am
13002
... Google "Virtual Clock pattern" -- J. B. (Joe) Rainsberger Diaspar Software Services http://www.diasparsoftware.com Author, JUnit Recipes: Practical Methods...
J. B. Rainsberger
nails762
Offline Send Email
Mar 3, 2005
5:03 am
13003
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...
Kevin Klinemeier
zipwow
Online Now Send Email
Mar 3, 2005
8:02 am
13004
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...
Michael Schuerig
mschuerig
Offline Send Email
Mar 3, 2005
10:37 am
13005
... Just checking. ... Roughly speaking: Unable to find xpath: //form[@name="demographics"]//input[@type="text" and @name="firstName"] I realize now that you...
J. B. Rainsberger
nails762
Offline Send Email
Mar 3, 2005
1:06 pm
13006
... 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...
J. B. Rainsberger
nails762
Offline Send Email
Mar 3, 2005
1:09 pm
Messages 12977 - 13006 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