Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

junit · JUnit, the Java unit testing framework written by Kent Beck and Erich Gamma.

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 31224
  • Category: Java
  • Founded: Nov 6, 2000
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 3156 - 3185 of 24386   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand Author Sort by Date ^
3156 MiChAeL xEnAkIs
mgxenakis Send Email
Nov 1, 2001
10:29 pm
Hey JUniter's - Still in the preliminary stages of investigating the various functional aspects of the JUnit framework(s) and have come across the following...
3157 J. B. Rainsberger
nails762 Send Email
Nov 1, 2001
11:08 pm
... I ... a ... As Kent would say, this sounds like an opportunity to improve your design. Is there something you can do about tearDown() so that it doesn't...
3158 J. B. Rainsberger
nails762 Send Email
Nov 1, 2001
11:12 pm
... I found it better to avoid the problem entirely. You should not let yourself rest at the whim of the JUnit developers, nice guys though they are. Consider...
3159 infosuresh@... Send Email Nov 2, 2001
2:37 pm
HAI, Designing the whole test process. Step1:subclass the TestCase. Step2:Initailize Step3:Add testXXX() methods. Step4:If reqiured run repeated tests. ...
3160 Berin Loritsch
bloritsch Send Email
Nov 2, 2001
2:53 pm
One thing that I see often is the fact that JUnit works from the command line, but not from the swing version. Veterans of JUnit are aware that this is a...
3161 Robert Sartin
robert_sartin Send Email
Nov 2, 2001
3:01 pm
... I assert that it is almost a proper testing environment. For many, if not most, JUnit users, the class loading tests work and work better than the...
3162 Berin Loritsch
bloritsch Send Email
Nov 2, 2001
3:11 pm
... "Almost" and "Are" can sometimes be a mile apart. Defaulting to the "-nonloading&quot; option is a step in the right direction. However, what about this...
3163 Earl Hokens
earl.hokens@... Send Email
Nov 2, 2001
9:14 pm
I have a couple of testing best practices questions for the group. If I am doing operator overloading (polymorphism) what is an acceptable way to construct the...
3164 Eric Vought
eric_vought Send Email
Nov 2, 2001
9:48 pm
... Your test methods don't have to mathc your method names. In other words, there is no restriction that testAdd() and only testAdd() tests the method "add"....
3165 infosuresh@... Send Email Nov 3, 2001
10:33 am
hai, After storing the result in an object of type Test Result..what is the method that can be used to print it? Can anyone expalin? Thank U & Regards ...
3166 J. B. Rainsberger
nails762 Send Email
Nov 3, 2001
2:52 pm
... Have you looked at both the API documentation and the source that comes with JUnit? If it's not there, and you can't do it yourself, it can't be done. JBR....
3167 FrankSun
leafsun2001 Send Email
Nov 5, 2001
6:54 am
I do not know if all the class should do unit test. Some class do not process the real action espc in the large framework. thx! ...
3168 Paolo Perrotta
pperrotta@... Send Email
Nov 5, 2001
9:24 am
Can you submit an example of a class that you think should *not* be unit tested? ... I do not know if all the class should do unit test. Some class do not...
3169 Steve Gardell
sgardell@... Send Email
Nov 5, 2001
11:30 am
Maybe the question is better "independently unit tested." It is not unusual to define helper classes such as "value classes" or "enumeration classes." IMHO,...
3170 Paolo Perrotta
pperrotta@... Send Email
Nov 5, 2001
12:21 pm
Agreed, but I get there in steps. I tend to unit test nearly everything directly and independently when I write it (excluded very, very simple classes - such...
3171 Daniel Reynes
dandandrfr Send Email
Nov 5, 2001
3:30 pm
I use JBuilder 4 to run some tests with Juint. Sometimes I want to stop running these tests and I use the Stop button of JBuilder. But I would like to catch...
3172 DiFrango, Ron
difranr Send Email
Nov 5, 2001
4:44 pm
... I am not sure if you got your answer, but JUnit looks for that file to be in a system environment variable called user.home. One Windows 2000 (and I ...
3173 Russ Baker
rbaker@... Send Email
Nov 5, 2001
4:45 pm
use the breakpoint. ... From: Daniel Reynes [mailto:daniel.reynes@...] Sent: Monday, November 05, 2001 8:27 AM To: Junit Subject: [junit] Catching a...
3174 Kelso, JP Phil (5502)
kelsojp@... Send Email
Nov 5, 2001
4:54 pm
How about a class that can't possibly break? Say a class with only setters and getters?...
3175 Heath, Joseph
mbcx4jrh Send Email
Nov 5, 2001
5:04 pm
Can still break - only through extremely silly error maybe , but nonetheless if you were relying on your unit tests to show error this could mess you up for a...
3176 Eric Vought
eric_vought Send Email
Nov 5, 2001
6:11 pm
Your test case verifies that you don't lose functionality. Simple classes can break too. Especially if you use cut and paste to create the setters/getters: ...
3177 FrankSun
leafsun2001 Send Email
Nov 6, 2001
1:45 am
Thx all your response for my Question! Our programe build on servlet tech, many object and param are form outside of the sigle class, like this is one of our...
3178 FrankSun
leafsun2001 Send Email
Nov 6, 2001
1:47 am
My thought is your example is simple and it done a real (may be like)action is set or get some value. But in the real oo programe the class do more like this :...
3179 john_naylor@...
jnaylor54321 Send Email
Nov 6, 2001
12:52 pm
i have been assigned the task of pushing our development team toward unit testing. i have been working with junit for a few weeks now but continue to struggle...
3180 Carsten Zerbst
carsten.zerbst@... Send Email
Nov 6, 2001
2:54 pm
Hello, I'm pretty new to java, so please excuse a dumb question. If got a class to test, my setup is something like public class InformationDirectoryTest...
3181 Strebel, Dr. Oliver
strebelel Send Email
Nov 6, 2001
3:22 pm
Hi Carsten! Have a look at the faq-subdirectory in the JUnit documentation. There you will find: public static Test suite() { TestSuite suite= new TestSuite();...
3182 Eric Vought
eric_vought Send Email
Nov 6, 2001
4:21 pm
Typically, the way you accomplish both objectives (hiding functionality and exposing it for unit testing) is to use a Facade. You expose the methods that you...
3183 J. B. Rainsberger
nails762 Send Email
Nov 6, 2001
4:38 pm
Actually, it *can* break, depending on your naming conventions. public class Broken { private String message; public Broken(String message) { message =...
3184 Eric Vought
eric_vought Send Email
Nov 6, 2001
5:27 pm
One of Brian Marick's key points in his book is that people don't make complex mistakes. It's the simple things that are most likely to go wrong: cut and paste...
3185 Shane Duan
wolfdancer_dodo Send Email
Nov 6, 2001
6:28 pm
Actually, it doesn't matter much for me to argue the possibilities of break. After spending time on building mock objects, controllers and setting up...
Messages 3156 - 3185 of 24386   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

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