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 21699 - 21728 of 22044   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
21699
DL, I have actually found that judicious use of underscores helps in this case since many GUI runners display them as spaces. Therefore, you can write things...
Pigneri, Rocco
rpigneri@...
Send Email
Jun 1, 2009
2:49 pm
21700
The latest snapshot build of 4.7 is junit-4.7-SNAPSHOT-20090601-1258. This build upgrades the bundled version of Hamcrest up to 1.2, which has effects on the...
David Saff
dsaff
Offline Send Email
Jun 1, 2009
5:18 pm
21701
With the most recent snapshot build of JUnit 4.7, you can basically use the JUnitMatchers.matches() method as type-checking duct tape, so this should compile: ...
David Saff
dsaff
Offline Send Email
Jun 1, 2009
5:22 pm
21702
... Apache Gump uses JUnit's trunk for everything it builds, but most of the projects probably do't use assertThat at all. One project that started to fail...
Stefan Bodewig
sbodewig
Offline Send Email
Jun 2, 2009
9:49 am
21703
I am trying the new annotations feature of JUnit4. Here is the program I am working with. I am using ant 1.6.5 and copied junit-4.6-RC1.jar to my...
surikoya
Offline Send Email
Jun 2, 2009
8:10 pm
21704
Surikoya, Sounds frustrating. How are you running the test? David Saff...
David Saff
dsaff
Offline Send Email
Jun 2, 2009
8:12 pm
21705
... I think that Ant 1.6.5 can't run JUnit 4 Tests without an Adapter. Ant 1.7.0 is the first JUnit 4-aware release, if I remember correctly. Greetings, Malte...
Malte Finsterwalder
maltefinster...
Offline Send Email
Jun 2, 2009
8:25 pm
21706
That helped. I set my ant home to 1.7 and it worked. Is these a doc/link which mentions how to migrate old JUnit test to the newer syntax. How can I have a mix...
Suresh Koya
surikoya
Offline Send Email
Jun 2, 2009
10:56 pm
21707
I had the same problem. Since Ant 1.6.5 was released before JUnit4 it doesn't know about it. I tried the same thing you did. I ended up upgrading to ant 1.7.0...
Scott Glaser
rsg00usa
Online Now Send Email
Jun 2, 2009
10:56 pm
21708
Yeah... migrating to JUnit4 with a bunch of existing JUnit3 tests is troublesome. However if you've been using Suites all along it's not that hard. What we've...
Forsberg, Mike
mike.forsber...
Offline Send Email
Jun 2, 2009
11:38 pm
21709
Hello there, ... As far as I know you can't mix old- and newstyle test in ONE class and I don't think that makes any sense anyways. But you can combine old-...
Malte Finsterwalder
maltefinster...
Offline Send Email
Jun 3, 2009
8:26 am
21710
Stefan, Logged here: http://github.com/KentBeck/junit/issues#issue/9 I think I may have a solution, by following hamcrest's lead and changing the signature of...
David Saff
dsaff
Offline Send Email
Jun 3, 2009
1:26 pm
21711
http://johanneslink.net/projects/cpsuite.html#changes Johannes...
Johannes Link
jlinkyh
Offline Send Email
Jun 3, 2009
8:44 pm
21712
Hi, I currently write tests involving multiple expected exceptions as: try { ...; fail("expected exception"); } catch (ExpectedExcepton ex) {} try { ...;...
Yang Zhang
yanghatespam@...
Send Email
Jun 3, 2009
10:22 pm
21713
Yang, I would probably write these as separate methods. Would that work for you? David Saff...
David Saff
dsaff
Offline Send Email
Jun 4, 2009
12:46 am
21714
Hey, all. The latest SNAPSHOT build of JUnit 4.7 is up on github: http://github.com/KentBeck/junit/downloads If you've been waiting until the new features were...
David Saff
dsaff
Offline Send Email
Jun 4, 2009
5:05 am
21715
What do you mean by "multiple expected exceptions"? How can you expect more than one exception to be thrown??? Curious, Ilja...
Ilja Preuß
ipreussde
Offline Send Email
Jun 4, 2009
7:56 am
21716
An unknown mirror is not a good solution for me. I could place JUnit javadocs somewhere on my server, but I would prefer the original ones. At last I found...
Grzegorz Słowiko...
gslowikowski
Offline Send Email
Jun 4, 2009
11:36 am
21717
Have you raised an issue on SourceForge or github? David Saff...
David Saff
dsaff
Offline Send Email
Jun 4, 2009
3:51 pm
21718
... The snapshot still didn't do the trick and I think it is Hamcrest's Is.is(Class<T>) method. The signature changed from Matcher<Object>...
Stefan Bodewig
sbodewig
Offline Send Email
Jun 5, 2009
11:14 am
21719
My guess is that the questioner has multiple operations in a single test: when I do *this* I get this exception and when I do *that* I get that exception If...
Kevin Lawrence
kevinwilliam...
Offline Send Email
Jun 5, 2009
4:02 pm
21720
All, Rapha has proposed the following change to the printing of parameterized tests. Rather than print the ordinal "parameterizedTest()[1]" he would like to...
kentb
kentlbeck
Offline Send Email
Jun 8, 2009
3:29 pm
21721
Kent, This has been proposed many times, usually in terms of changing the actual name in the description. Originally, I backed off because I thought users...
David Saff
dsaff
Offline Send Email
Jun 8, 2009
3:48 pm
21722
Could an interceptor be used to override how a parameterised test is described? --Nat ... -- http://www.natpryce.com...
Nat Pryce
nat_pryce
Offline Send Email
Jun 8, 2009
6:26 pm
21723
Hi JUnit, Here's a blog entry that describes in detail what I ended up doing to get non-static inner classes instantiated and run along with their enclosing...
Paul Holser
pholser
Offline Send Email
Jun 8, 2009
6:49 pm
21724
No. Interceptors don't exist at describe-time, just run-time. The feature would be a good one, but it would need to live elsewhere. David Saff...
David Saff
dsaff
Offline Send Email
Jun 8, 2009
7:19 pm
21725
It is not included in the distribution, and does not seem to be available online anywhere. Anybody hava a pointer?...
garrisonjim
Online Now Send Email
Jun 8, 2009
10:45 pm
21726
ant test -Dtest.class.name=AnnotationsTest.   When I changed the code as follows , there are two tests that got run successfully. I now have to extend...
Suresh Koya
surikoya
Offline Send Email
Jun 9, 2009
10:33 am
21727
Suresh, Can you send the class as you'd like it to be run, and what the behavior is? That will help us understand what's going on. Thanks, David Saff...
David Saff
dsaff
Offline Send Email
Jun 9, 2009
3:31 pm
21728
I have some tests that require relatively large heap sizes to complete (eg 800MB). It would be useful to have an annotation to express this so that a runner...
Mark Thornton
mark_p_thornton
Offline Send Email
Jun 9, 2009
10:56 pm
Messages 21699 - 21728 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