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...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

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 22064 - 22093 of 22093   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
22064
... In my corrent codebase I could think of something like this: Some of our tests use a class "PersistentTestSupport", that helps in setting up tests that use...
Malte Finsterwalder
maltefinster...
Offline Send Email
Nov 19, 2009
4:11 pm
22065
... Just skimmed through two of my OS projects. 80% of the test cases refer to a single class under test. For about 20% of those CUTs I have more than one test...
jlinkyh
Offline Send Email
Nov 19, 2009
4:26 pm
22066
... I am sure that you guys spent a lot of time debating this point back in the day, but I would like to point out that this is one of the hidden drawbacks of...
Pigneri, Rocco
rpigneri@...
Send Email
Nov 19, 2009
5:45 pm
22067
I need some way to run a certain test after all other tests. I run my tests in Eclipse, and do not yet have a build system outside of it. I understand that had...
stolsvik
Offline Send Email
Nov 19, 2009
6:17 pm
22068
Well, of course the feature already has my vote ;), but in terms of concrete code, sure. I have an DAOBase for the general persistence classes, and then...
yme0987654321
Offline Send Email
Nov 19, 2009
6:21 pm
22069
Stolsvik, You can use @BeforeClass and @AfterClass on a suite to get this behavior, in many circumstances. David Saff...
David Saff
dsaff
Offline Send Email
Nov 19, 2009
7:24 pm
22070
... @BeforeSuite and @AfterSuite would be nice :-) -- ***Cédric * [Non-text portions of this message have been removed]...
Cédric Beust 
cbeust
Offline Send Email
Nov 19, 2009
7:34 pm
22071
As synonyms for BeforeClass and AfterClass? David Saff...
David Saff
dsaff
Offline Send Email
Nov 19, 2009
7:44 pm
22072
Cedric, That is what you get out of @BeforeClass and @AfterClass when you define them on the class with the @RunWith(Suite.class) annotation. It is the same...
yme0987654321
Offline Send Email
Nov 19, 2009
7:45 pm
22073
... No, as wrappers of an entire test suite: BeforeSuite BeforeClass ... AfterClass BeforeClass AfterClass ... AfterSuite -- ***Cédric * [Non-text portions of...
Cédric Beust 
cbeust
Offline Send Email
Nov 19, 2009
7:50 pm
22074
I agree with Georg. I prefer an annotation where I can specify the subcategories where a test fits. Something like: @Category( "database.mysql.local" ) public...
Bogdan
bogdanmocanu...
Offline Send Email
Nov 20, 2009
8:29 am
22075
All, I can see that a short code snippet has been misleading about what our proposal makes easy, possible, and impossible. I'll try to post a longer feature...
David Saff
dsaff
Offline Send Email
Nov 20, 2009
1:25 pm
22076
Folks, thanks for your answers. ... Could you tell me directly, or point to some resource, of how I set that up? Your sentence didn't immediately ring...
stolsvik
Offline Send Email
Nov 20, 2009
1:27 pm
22077
Stolsvik, What you want (annotate some random class somewhere) isn't currently supported by JUnit (as far as I know). But what you can do is make a suite. So...
yme0987654321
Offline Send Email
Nov 20, 2009
4:20 pm
22078
... Some (many) people have asked for categories as a way of running only some of their tests, and our primary goal is to help them. If you were ever tempted...
David Saff
dsaff
Offline Send Email
Nov 20, 2009
4:28 pm
22079
I have a question about the options for gathering and displaying supplemental information about test failures. Please allow me to illustrate my question with a...
Sunburned Surveyor
sunburned_su...
Offline Send Email
Nov 20, 2009
7:16 pm
22080
Have you looked at how eclipse handles AssertEquals of two Strings. Not sure if this is a JUnit core functionality or not. But eclipse highlights how the two...
Forsberg, Mike
mike.forsber...
Offline Send Email
Nov 20, 2009
7:20 pm
22081
Dear Sunburned, If I write assertEquals("(1,-1,0)", point.toString()); and change the toString method, I get this (slightly garbled, but mostly helpful)...
David Saff
dsaff
Offline Send Email
Nov 20, 2009
7:22 pm
22082
Mike, I've never seen it. I am interested, but ultimately we are looking for a solution that will work outside of Eclipse. We are working on an open source ...
Sunburned Surveyor
sunburned_su...
Offline Send Email
Nov 20, 2009
7:26 pm
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
12:47 am
Messages 22064 - 22093 of 22093   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