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...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

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 16210 - 16239 of 22044   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
16210
... +1 Then the trick becomes naming the test well. -- ... Blog: http://dotnetjunkies.com/WebLog/mlevison/ [Non-text portions of this message have been...
Mark Levison
marklevison
Offline Send Email
Mar 1, 2006
3:01 pm
16211
... This is an important point. For example, what if you have a method that will throw an IllegalArgumentException if any of its three arguments is null? It's...
jason r tibbetts
tibbettj_at_...
Offline Send Email
Mar 1, 2006
3:05 pm
16212
... On that note, what conventions does everyone here use to name their test methods? For this example, mine would look like: test_push_emptyStack() ...
jason r tibbetts
tibbettj_at_...
Offline Send Email
Mar 1, 2006
3:15 pm
16213
My naming convention is similar but I don't use underscores. I don't like them! -- Yagiz Erkan -- http://blog.decaresystems.ie...
Yagiz Erkan
yagizerkan@...
Send Email
Mar 1, 2006
3:24 pm
16214
... I've lately tended toward declarative sentences where possible in my own work, such as testPushAddsAnElementToEmptyStack ...
David Saff
dsaff
Offline Send Email
Mar 1, 2006
3:37 pm
16215
... Yeah, I don't like them either. I /swear/ that this is the only place in all of my Java code that I use them!...
jason r tibbetts
tibbettj_at_...
Offline Send Email
Mar 1, 2006
3:48 pm
16216
... Aside from the underscores (which Sun says are not "according to Hoyle"[1]) my convention broadly similiar. Here are some samples from my current test ...
Mark Levison
marklevison
Offline Send Email
Mar 1, 2006
3:49 pm
16217
... I do the same. Sometimes I derive all my test classes from a base test class that converts the test names from CamelCase to spaces and dumps them to a file...
Paolo "Nusco" Perrotta
paoloperrotta
Offline Send Email
Mar 1, 2006
6:51 pm
16218
Sounds like you would benefit greatly from TestNG's "description" attribute: @ExpectedExceptions(ElementNotFoundException.class) @Test(description = "Verify...
Cédric Beust 
cbeust
Offline Send Email
Mar 1, 2006
7:29 pm
16219
Cédric, ... For those of us who aren't JDK 1.5- or TestNG-enabled, there's also Plain Old Javadoc comments. Unfortunately, now that we've moved to Maven 1.x,...
jason r tibbetts
tibbettj_at_...
Offline Send Email
Mar 1, 2006
7:52 pm
16220
Paolo, ... I like this idea. How exactly does the base class implementation work? Does its constructor convert and dump the name to the report file, or is ...
jason r tibbetts
tibbettj_at_...
Offline Send Email
Mar 1, 2006
7:55 pm
16221
maybeIfYouGetToTheTestThatHasTheInterminiblyLongName_ThatIsAnIndicationThatThereIsEntirelyTooMuchToTestInThatOneTestClass? ... From: David Saff <saff@...> ...
didoss@...
dijdoss
Offline Send Email
Mar 1, 2006
9:09 pm
16222
... For me, the trick becomes splitting the tests well into test case classes. EmptyStackTest OneItemStackTest MultipleItemsStackTest FullStackTest ... -- J....
J. B. Rainsberger
nails762
Offline Send Email
Mar 1, 2006
9:10 pm
16223
... I would look at moving those tests into a PushStackTest, as a way to remove duplication in the names. That said, I would organize it the other way: a...
J. B. Rainsberger
nails762
Offline Send Email
Mar 1, 2006
9:11 pm
16224
Ditto, but usually: testPushEmptyStack() testPushStackWithOneElement() testPushFullStack() testPushNullElement() ... From: jason r tibbetts...
didoss@...
dijdoss
Offline Send Email
Mar 1, 2006
9:21 pm
16225
Hi, Does any one know how I can test protected method outside a package? Without moving the test class into the package where the method to be tested resides. ...
Kamal Ahmed
KAhmed@...
Send Email
Mar 1, 2006
9:45 pm
16226
Hi, Is it possible to have BOTH Junit 3.x and 4.0 coexist in eclipse and use @Test , and also the conventional Junit test cases? If this is possible, then what...
Kamal Ahmed
KAhmed@...
Send Email
Mar 1, 2006
11:08 pm
16227
... Thanks much! Domain-specific PMD rules (junit, jakarta logging, etc.) are pretty cool, I think; even if only a couple of people are using them, they're...
Tom Copeland
tomcopeland_...
Online Now Send Email
Mar 1, 2006
11:19 pm
16228
... Did I? Must have been the JavaCC part... racy stuff, those parser generators.... Yours, Tom...
Tom Copeland
tomcopeland_...
Online Now Send Email
Mar 1, 2006
11:19 pm
16229
Hi, I recently have started working on in JUNIT.I have few doubts for Data Driven Test Cases. The scenario is as follows 1) I am passing the Input value (as of...
Pratush Dayal
pratiush_dayal
Online Now Send Email
Mar 1, 2006
11:20 pm
16230
... Hmmmm... I understand the distinction, but personally I find that sticking to this rule in the case of unexpected exceptions makes it *harder* to figure...
Joe Schmetzer
copabella
Offline Send Email
Mar 1, 2006
11:20 pm
16231
Hi, Just a little message to tell you that you can find here ...
fujeyla
Offline Send Email
Mar 1, 2006
11:22 pm
16232
hello guys, i am posting this only after going through the faqs i am getting the following error, help me out, There was 1 failure: 1)...
Srikumar Krishna Iyer
physri
Offline Send Email
Mar 1, 2006
11:22 pm
16233
i want to know that can i learn junit while i have no knowledge about junit but i know basic java programming and c programming. if yes then please give me an...
praveshpappu
Offline Send Email
Mar 1, 2006
11:25 pm
16234
Recently I encountered a problem with StrutsTestCase. The following code is my Struts Action and its dependent business logic is injected by Spring. public...
hj_igo
Offline Send Email
Mar 1, 2006
11:26 pm
16235
I've been using EMMA for quite a while. When I chose it in early 2004, the landscape of open source coverage tools was pretty sparse. I evaluated EMMA,...
John Lindwall
jlindwall
Offline Send Email
Mar 1, 2006
11:27 pm
16236
The best way to get past this error message is to write at least one test. :-) ... -- www.simonpeter.org...
Simon Chappell
spchappell
Offline Send Email
Mar 2, 2006
3:12 am
16237
Kamal, Yes, this is possible with Eclipse 3.1 and above. For example: @RunWith(Suite.class) @SuiteClasses(ATest.class, BTest.class) public class AllTests { ...
David Saff
dsaff
Offline Send Email
Mar 2, 2006
3:32 am
16238
... Maybe. My point was less about the names getting too long, and more that even pushAddsOneElement still takes more time and effort for me to read than...
David Saff
dsaff
Offline Send Email
Mar 2, 2006
3:39 am
16239
Pratush, You may want to look at the Parameterized test runner for JUnit 4. Even in that case, you'd need to write your own driver for reading and writing the...
David Saff
dsaff
Offline Send Email
Mar 2, 2006
3:59 am
Messages 16210 - 16239 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