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...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 14524 - 14553 of 24384   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand Author Sort by Date ^
14524 J. B. Rainsberger
nails762 Send Email
Aug 31, 2005
12:14 pm
... I value testing, so I generally do whatever it takes to make code testable. Not everyone values testing as much I do, especially compared to other...
14525 ahmed fouad
ahmed_3cs_fci Send Email
Aug 31, 2005
1:05 pm
Thank you Tood,but please I need more and more about this topic. "Bradley, Todd" <todd.bradley@...> wrote:Personally, I don't think it's a good idea to...
14526 my_java_questions
my_java_ques... Send Email
Aug 31, 2005
1:05 pm
David, Thanks for answering so quickly! Actually that's exactly what I did. At first, I had multiple versions of the same fixture lying around my TestCases. As...
14527 Jim Cakalic
jim_cakalic Send Email
Aug 31, 2005
2:53 pm
... I value testing also. But I guess I'm in the latter group that finds other considerations to be of greater importance. I'm not happy with stating it that...
14528 Ilja Preuss
ipreussde Send Email
Aug 31, 2005
3:12 pm
... Well, perhaps the flight took them nearer to their god of choice... ;) Cheers, Ilja...
14529 Ilja Preuss
ipreussde Send Email
Aug 31, 2005
3:14 pm
... I agree. I'd want to add, though, that I also value testable code, not only because I can write tests for it, but because it also tends to be well ...
14530 Bradley, Todd
todd404 Send Email
Aug 31, 2005
3:14 pm
Have you already exhausted the wealth of knowledge available online for free through Google? If so, have you already acquired and thoroughly read any of the...
14531 Bradley, Todd
todd404 Send Email
Aug 31, 2005
3:21 pm
You refer to "individual tests" as if you're running more than one test. But your build file is set up to only run a single test, called Simple.class. Does ...
14532 Praveen AH
praveen_maduray Send Email
Aug 31, 2005
3:23 pm
Hi Rainsberger, It is not possible to test private methods in a class i believe but i am not sure in this. because generally client could able to access only...
14533 Donny Widjaja
donnywi Send Email
Aug 31, 2005
3:23 pm
Hi all, I am running my JUnit within Cactus Framework. I am thinking of making a generic testcase that takes three parameters (or more if necessary). They...
14534 Mikhail Shnayderman
mschnayd Send Email
Aug 31, 2005
3:43 pm
D. and David, I agree with David that incremental approach is proably the best approach for extracting commonalities into a base classes, although I am not...
14535 J. B. Rainsberger
nails762 Send Email
Aug 31, 2005
4:38 pm
... With JUnit 3.x, where we have to inherit from TestCase to make test case classes, I do this: * A implements X, Y, Z, so I have.... * XTestTemplate,...
14536 David Saff
dsaff Send Email
Aug 31, 2005
4:39 pm
Donny, I don't know Cactus specifically, so if the trouble lies there, your solution lies elesewhere. My solution to this requirement would definitely contain...
14537 Cedric Beust
cbeust Send Email
Aug 31, 2005
4:54 pm
... Donny Widjaja ... This is by design in JUnit: your test objects are reinstantiated from scratch before every test method, which makes it hard to maintain...
14538 Ilja Preuss
ipreussde Send Email
Aug 31, 2005
5:07 pm
... State between method invocations isn't the problem here. What Donny wrote about sounds a lot like the Parameterized TestCase pattern, that is a valid Junit...
14539 Ilja Preuss
ipreussde Send Email
Aug 31, 2005
5:08 pm
... As I already wrote to Cedric, this sounds a lot like "Parameterized TestCase". You might want to google for it. ... OK. ... How do you run the tests? From...
14540 David Saff
dsaff Send Email
Aug 31, 2005
5:09 pm
... That's a little misleading and a little untrue. _If_ you run JUnit on a class without a suite() method, or you have a suite() method that calls ...
14541 Cedric Beust
cbeust Send Email
Aug 31, 2005
5:42 pm
... David Saff ... Wow, you really had me there. I didn't believe it, so I tried it. And you are right. Run the following with JUnit: public class Test1...
14542 my_java_questions
my_java_ques... Send Email
Aug 31, 2005
7:29 pm
... case ... It does help! A lot... Boy do I feel stupid. All this time I was trying to make everything fit into one class when all it took was testing all...
14543 my_java_questions
my_java_ques... Send Email
Aug 31, 2005
7:29 pm
... Mikhail, Thank you for this tip. In fact, I was already wondering if delegation/combination/encapsulation wasn't the right way around single inheritance...
14544 Donny Widjaja
donnywi Send Email
Aug 31, 2005
7:29 pm
I think my problem does not lies in JUnit but in the Cactus framework (ServletTestCase). However, thank you to all of you who have shared their opinion and...
14545 David Saff
dsaff Send Email
Aug 31, 2005
7:43 pm
Cedric, What behavior would you expect? From JUnit's point of view, in the first case, you're explicitly creating a single test case, and in the other, you're...
14546 Cedric Beust
cbeust Send Email
Aug 31, 2005
7:48 pm
... Donny Widjaja ... Right, this is the typical pattern to use in JUnit when you want to pass parameters to your test methods. Still, it's far from perfect...
14547 Bradley, Todd
todd404 Send Email
Aug 31, 2005
8:49 pm
... Yeah, isn't it great? I'm wondering which two participants you consider celebrities, though... Todd....
14548 Mikhail Shnayderman
mschnayd Send Email
Aug 31, 2005
8:54 pm
Todd, I replied to David, and I know I am not a celebrity. So it must be other two guys. - Mikhail ... ____________________________________________________ ...
14549 jason r tibbetts
tibbettj_at_... Send Email
Aug 31, 2005
9:31 pm
... FWIW, I use J.B.'s methodology, /and/ I like to fit all of my tests for a given class into a single TestCase. I find that in a multi-developer environment,...
14550 Ilja Preuss
ipreussde Send Email
Sep 1, 2005
6:44 am
... Allowing for easy customization of how the tests are collected from a TestCase class? What did you expect to happen? Curious, Ilja...
14551 poojar2710 Send Email Sep 1, 2005
6:49 am
yes simple.java define a test suite. My only problem is that "TESTS- TestSuites.xml"; is not showing anything. So please let me know what are the possible...
14552 Praveen AH
praveen_maduray Send Email
Sep 1, 2005
6:49 am
junit is a open source unit testing tool. To know more about junit visit: www.junit.org Thanks Praveen sarodev24 <sarodev24@...> wrote: what is junit ?...
14553 Ilja Preuss
ipreussde Send Email
Sep 1, 2005
6:49 am
... Yes, that's the Parameterized Testcase pattern. Besides the point that the typical implementation is to put the suite() method into the MyTest class, which...
Messages 14524 - 14553 of 24384   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