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 to share photos of your group with the world? 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 20736 - 20765 of 22044   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
20736
Alex, First, assumptions can go in individual test methods, or in @BeforeClass on a test class (to short-circuit many methods), or in @BeforeClass on a suite...
David Saff
dsaff
Offline Send Email
Aug 1, 2008
2:10 pm
20737
On Thu, Jul 31, 2008 at 3:46 AM, Hans Schwaebli ... Given that "boolean canLogin()" exists, I see a one-line difference between public static boolean CAN_LOGIN...
David Saff
dsaff
Offline Send Email
Aug 1, 2008
2:26 pm
20738
Hello, I am trying to build my java project with a build.xml file using ant in eclipse. The problem is the JUnit part of the build (it builds sucessfull...
mfugleru
magnusfuglerud
Offline Send Email
Aug 1, 2008
3:18 pm
20739
... No and no. That test was excellent: any subclass of JUnit4ClassRunner would have had similar problems. The fix is in HEAD, and will be in beta 4. David...
David Saff
dsaff
Offline Send Email
Aug 1, 2008
3:29 pm
20740
Robin, I didn't go back and check this with beta 3, but 4.5 beta 4 seems to work as expected. I'll release later today: let me know if the problem persists....
David Saff
dsaff
Offline Send Email
Aug 1, 2008
3:45 pm
20741
All, Here's yet another beta of JUnit 4.5. Major bugs reported with previous betas have been fixed, and two more classes useful for extenders have been...
David Saff
dsaff
Offline Send Email
Aug 1, 2008
3:53 pm
20742
All, That link would be: https://sourceforge.net/project/showfiles.php?group_id=15278 Thanks, David Saff...
David Saff
dsaff
Offline Send Email
Aug 1, 2008
3:53 pm
20743
Not by Kent or me. Anyone maven-savvy willing to take this on as their penance or public service would be much appreciated. David Saff...
David Saff
dsaff
Offline Send Email
Aug 1, 2008
3:55 pm
20744
This approach doesn't scale as soon as you need to depend on more than one method (what do you do later down the road when you need to add one method to the...
Cédric Beust 
cbeust
Offline Send Email
Aug 1, 2008
4:06 pm
20745
If I had a bunch of methods depending on canLogin(), and then discovered that all of those methods also depended on answering a captcha, I would use my IDE to...
David Saff
dsaff
Offline Send Email
Aug 1, 2008
4:58 pm
20746
Consider this: testServlet1() { assume(canLogin()); } testServlet2() { assume(canLogin()); } And you want to add another dependency, say "serverStarted()". Now...
Cédric Beust â...
cbeust
Offline Send Email
Aug 1, 2008
5:24 pm
20747
... I assert that I can automatically add a line to canLogin, and rename it, and end up with: testServlet1() { assumeTrue(serverStartedAndCanLogin()); } ...
David Saff
dsaff
Offline Send Email
Aug 1, 2008
5:37 pm
20748
+1 test groups IMHO, test groups are a lot more "refactoring-friendly" than method names. For example, I use the following class to specify all my test groups:...
Alex Ruiz
alruiz15
Offline Send Email
Aug 1, 2008
5:40 pm
20749
Thank you, Kent! I guess Link is actually statement. ... precise ... "David Saff" ... class....
toalexsmail
Offline Send Email
Aug 2, 2008
9:51 pm
20750
... It is actually evening now. ... First of all, I happy to know about this way of testing. Does it available in JUnit 4.4? (I don't have the code to look on...
toalexsmail
Offline Send Email
Aug 2, 2008
9:51 pm
20751
In my program, I used the recursive techniques which I guess it's good soluction. But when I tried to use Junit to test the recursive unit part. the...
tawqir_wei
Offline Send Email
Aug 3, 2008
9:25 pm
20752
junit, used correctly, has no issues testing recursive functions. but you can't/don't normally write test functions that themselves recurse. Maybe if you...
Mike Hill
uly562000
Offline Send Email
Aug 3, 2008
9:46 pm
20753
... Yes. ... I actually don't quite understand this. Are you saying that you're changing the startup parameters to your microcontainer by hand between each...
David Saff
dsaff
Offline Send Email
Aug 4, 2008
9:56 am
20754
Dear all, I am so glad to get your response. Thank you again. Maybe I used it wrong. I was wandering where I am wrong for a few days. I am confused. Kindly...
fuguo wei
tawqir_wei
Offline Send Email
Aug 4, 2008
10:56 am
20755
Dear guys, if you the mail I sent before was not readable. the souce code(stackOverfloww error socurce code.txt ) and and the error message(JUniterror.jpg )...
fuguo wei
tawqir_wei
Offline Send Email
Aug 4, 2008
1:38 pm
20756
Hi List! Today I asked myself whether there is a given order if I decorate multiple methods in one class with @Before or @After. All of the methods are...
Robin de Silva Jayasi...
robinjay33
Offline Send Email
Aug 4, 2008
1:38 pm
20757
Robin, There is no defined order to the execution of Before and After methods. If you have two bits of setup that are temporally coupled, the most direct way I...
kentb
kentlbeck
Offline Send Email
Aug 4, 2008
3:57 pm
20758
Hello, Robin! Alternative way will be to use inheritance. It will be something like this. public class Base { @Before public void setUp(){ ... } @After public...
toalexsmail
Offline Send Email
Aug 4, 2008
9:30 pm
20759
... No, I am not. I just want that doYourOneTimeSetup() would be run once for ANY suite that run. doYourOneTimeSetup() will startup microcontainer. Parameters...
toalexsmail
Offline Send Email
Aug 4, 2008
9:30 pm
20760
  Dear all, I am so upset about the problem I encountered. Wish any one could help me. Thank here first. It's the StackOverflowError problem. I thought It's...
Fuguo Wei
tawqir_wei
Offline Send Email
Aug 5, 2008
11:34 am
20761
Fuguo, I'm sorry this has been bugging you. It's difficult to understand how JUnit could be encountering a recursion loop that wasn't there in your production...
David Saff
dsaff
Offline Send Email
Aug 6, 2008
10:22 am
20762
... Can you define doYourOneTimeSetup in a superclass of the suites, and have all of your suites inherit from it? ... So the suite that you want to run often...
David Saff
dsaff
Offline Send Email
Aug 6, 2008
10:27 am
20763
All, http://sourceforge.net/project/showfiles.php?group_id=15278 is release candidate 1 of JUnit 4.5. We believe that we've addressed all bugs found by our...
David Saff
dsaff
Offline Send Email
Aug 6, 2008
4:01 pm
20764
... It works fine with jMock 2. Thanks. --Nat....
Nat Pryce
nat_pryce
Offline Send Email
Aug 6, 2008
5:59 pm
20765
Robin, Have you looked at whether your job is easier JUnit 4.5? We've made a lot more functionality non-internal, which I hope would help. Thanks, David Saff...
David Saff
dsaff
Offline Send Email
Aug 6, 2008
6:01 pm
Messages 20736 - 20765 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