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 your group to be featured on the Yahoo! Groups website? 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 22083 - 22112 of 22112   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
22083
You might consider extending/changing/refactoring JUnit itself using github. There you can fork JUnit itself and submit your idea for inclusion for everyone....
Forsberg, Mike
mike.forsber...
Offline Send Email
Nov 20, 2009
7:35 pm
22084
Big Mike, Thanks for the info. I don't know that the system I have in mind will require any tweaks to JUnit. I think all of my code can run along side of it,...
Sunburned Surveyor
sunburned_su...
Offline Send Email
Nov 20, 2009
8:11 pm
22085
David, In this particular case your technique would work. I wonder, when testing return values that are slightly more complicated, if this would start to fall...
Sunburned Surveyor
sunburned_su...
Offline Send Email
Nov 20, 2009
9:07 pm
22086
Landon, Definitely take a close look at the failure messages from the standard assert methods, and also the assertThat method added in 4.4. Good luck, David...
David Saff
dsaff
Offline Send Email
Nov 20, 2009
10:17 pm
22087
Hi David, Did you gave thoughs to cases where one would like to exclude certain tests? E.g.: run all tests that are not in (a) certain category(s)? This is...
Georg
le_garcon_en...
Offline Send Email
Nov 21, 2009
4:01 am
22088
Sorry! The URL is http://github.com/KentBeck/junit/issues/#issue/37 (can the issue number change? I have memories of this being number 41). The title is:...
Georg
le_garcon_en...
Offline Send Email
Nov 21, 2009
4:02 am
22089
Thanks David. I'll give the assertThat a close look. ... [Non-text portions of this message have been removed]...
Sunburned Surveyor
sunburned_su...
Offline Send Email
Nov 21, 2009
4:02 am
22090
... For what it's worth, excluding tests is a very popular TestNG features. For example, I use it when a few tests are broken and need to remain so for a ...
Cédric Beust 
cbeust
Offline Send Email
Nov 21, 2009
5:00 am
22091
... Georg, We came very close to adding an ExcludeCategories annotation. However, we decided to stay at a minimal feature set for Categories in the initial...
David Saff
dsaff
Offline Send Email
Nov 21, 2009
11:11 am
22092
... For this particular use case, I've found @Ignore generally useful. I also really love Kevin Lawrence's idea of marking tests with bug numbers. He does it...
David Saff
dsaff
Offline Send Email
Nov 21, 2009
11:25 am
22093
Hi David! A minor thing: why did you decide to use an additional annotation and did not add a property to @SuiteClasses? E.g., your example (on...
Georg
le_garcon_en...
Offline Send Email
Nov 22, 2009
12:47 am
22094
Hello, I use junit 4.4 and there is no chance to use a newer version of junit. I have a TestListener which extends RunListener. I overwrite the methode...
eclipse.beginner
eclipse.begi...
Offline Send Email
Nov 22, 2009
3:55 pm
22095
I second that the @Ignore is the way to go with this. What I do is define some String constants in a relevant class that defines the basic reasons (read...
yme0987654321
Offline Send Email
Nov 22, 2009
5:37 pm
22096
For what it is worth, I would prefer the separate annotation, as it makes it more feasible to use it with other runners. Yishai...
yme0987654321
Offline Send Email
Nov 22, 2009
5:41 pm
22097
... The problem with @Ignore is that 1) you need to specify it on all the methods you want to exclude and 2) it forces a recompilation. Being able to specify...
Cédric Beust 
cbeust
Offline Send Email
Nov 22, 2009
5:45 pm
22098
... This story makes sense to me if you have many tests in the broken group, and sometimes want to run all of them, and sometimes want to run none of them. Is...
David Saff
dsaff
Offline Send Email
Nov 23, 2009
3:36 am
22099
... No, I never really run all the methods in the excluded groups, most of the time, their purpose is just to be excluded. When I want to start fixing the ...
Cédric Beust 
cbeust
Offline Send Email
Nov 23, 2009
3:44 am
22100
... Got it. So we seem in agreement that excluded categories may be useful, but a "broken" category is not the best argument for them. David Saff...
David Saff
dsaff
Offline Send Email
Nov 23, 2009
3:57 am
22101
Unfortunately, I don't know of a way to do that easily in any JUnit class. There's two possibilities I could think of as workarounds: 1) You can usually parse...
David Saff
dsaff
Offline Send Email
Nov 23, 2009
2:09 pm
22102
All, I believe that all owners of items on the SourceForge trackers have been notified to move their items over to the GitHub tracker: ...
David Saff
dsaff
Offline Send Email
Nov 23, 2009
2:34 pm
22103
I absolutely second this! Georg...
Georg
le_garcon_en...
Offline Send Email
Nov 23, 2009
4:44 pm
22104
Georg, Unfortunately, your context got snipped: are you seconding the original Categories feature as presented, or one of the follow-on proposals later in the...
David Saff
dsaff
Offline Send Email
Nov 23, 2009
5:45 pm
22105
No idea! I didn't think negative votes were possible. I've voted it up to 0, and I'll ping the github administrators to see what's going on. Sorry... David...
David Saff
dsaff
Offline Send Email
Nov 23, 2009
5:50 pm
22106
Hello! you can also use Runtime.getRuntime().registerShutdownHook(...) to register a shutdown-hook that is run after junit is done. But I don't hink you can...
Malte Finsterwalder
maltefinster...
Offline Send Email
Nov 24, 2009
9:05 am
22107
All, HEAD on github has two enhancements to the original category proposal: any class can be a category marker, and categories can be excluded from suites....
David Saff
dsaff
Offline Send Email
Nov 24, 2009
7:13 pm
22108
Hello All! I'm using JUnit 4.5 and I'm facing a problem with the EDT. I'm wondering if there is an easy way to create a custom Runner that will run my UI tests...
marcelo_javier_ruiz
marcelo_javi...
Offline Send Email
Nov 25, 2009
1:33 am
22109
Hi Marcelo, What is the problem you are facing? Only access to Swing components needs to be done in the EDT, not the whole test. If you cannot use FEST, simply...
Alex Ruiz
alruiz15
Offline Send Email
Nov 25, 2009
5:17 am
22110
Hi  David! I meant to second your statement #  Got it. So we seem in agreement that excluded categories may be #  useful, but a "broken" category is not the...
Georg Thimm
le_garcon_en...
Offline Send Email
Nov 25, 2009
12:15 pm
22111
Hi Alex! Thank for the quick reply. The problem I was facing was because we're using Mockito, and it does not support mock setting and verification by ...
marcelo_javier_ruiz
marcelo_javi...
Offline Send Email
Nov 25, 2009
5:02 pm
22112
Hi all, I have this situation: A big interface "I" which is implemented by the "A" and "B" classes. I've solved the problem of wrote only one test for both...
Fedy2
Offline Send Email
9:19 am
Messages 22083 - 22112 of 22112   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