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 18489 - 18518 of 22044   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
18489
Hi Take a look at http://www-128.ibm.com/developerworks/library/j-ant/ and http://dsd.lbl.gov/~ksb/Scratch/jajucc_hw.html These URLs start from the "Hello...
kaushalC
Offline Send Email
Dec 1, 2006
8:21 am
18490
Greetings David, Thanks for the email! I understand where you're coming from. ... Agreed. ... Correct, I'm usually employing assertEquals. I'd say out of the...
Jeff Langr
jlangr
Offline Send Email
Dec 1, 2006
5:27 pm
18491
Hi If you are trying to automate explorer based test cases using JUnit there's an excellent library called watij. You can use this tool in JUnit enviroment for...
avinash anand
avinash_anand
Online Now Send Email
Dec 1, 2006
6:35 pm
18492
Hi David, ... I actually had this for a while in my own C# framework. Even without the parentheses, I didn't find the And syntax that readable. It's not the...
Charlie Poole
cpoole98370
Offline Send Email
Dec 1, 2006
11:45 pm
18493
Hi Joe, ... I think it would have a certain historical value. :-) Charlie...
Charlie Poole
cpoole98370
Offline Send Email
Dec 1, 2006
11:53 pm
18494
... Although I am using JUnit 4 now, I haven't yet used the expected-parameter - I don't test for exceptions particularly often. Having said that, to me public...
Ilja Preuss
ipreussde
Offline Send Email
Dec 2, 2006
12:48 am
18495
... I can help with that :-) -- Cédric http://testng.org [Non-text portions of this message have been removed]...
Cédric Beust 
cbeust
Offline Send Email
Dec 2, 2006
1:20 am
18496
Hopefully someone can explain this situation: Public class sgTest extend TestCase { File myFile; protected void setUp() throws Exception { super.setUp(); } ...
rsg00usa
Offline Send Email
Dec 2, 2006
3:18 am
18497
JUnit reinstantiates the test class before each test method. Move the assignment to setUp(). -- Cedric http://testng.org ... -- Cédric [Non-text portions of...
Cédric Beust 
cbeust
Offline Send Email
Dec 2, 2006
3:43 am
18498
... All of my experience with any of the public tools has been with JMock. JMock 1, available from http://jmock.org has both the mocking library and the...
David Saff
dsaff
Offline Send Email
Dec 2, 2006
7:13 pm
18499
RMock (rmock.sf.net) also has an assertThat library. It is like JMock 1.x but using EasyMock 2 style syntax and not requiring Java 5. It has a few quirks and ...
Paul King
paulk@...
Send Email
Dec 2, 2006
8:41 pm
18500
My two cents: JMock is falling behind and EasyMock has the lead today. It has more features, makes very clever use of generics and has much better static...
Cédric Beust 
cbeust
Offline Send Email
Dec 2, 2006
11:26 pm
18501
The front page of junit.org still links to junit-4.1.zip Martijn ... -- <a href="http://www.thebeststuffintheworld.com/vote_for/wicket">Vote</a> for <a...
Martijn Dashorst
martijn_dash...
Offline Send Email
Dec 3, 2006
12:43 pm
18502
I am trying to create JUnit report using ant's JUnit task. The classes to be tested use a static cache oject to load and store the config files. If in...
jiaoyangs
Offline Send Email
Dec 4, 2006
3:07 pm
18503
I can think of a few options: 1. set forkmode to "once" or "batch" in the junit-task (haven't tried this one) 2. create a testsuite with all your tests (for...
Joakim Ohlrogge
j0hlrogge
Offline Send Email
Dec 4, 2006
3:31 pm
18504
... It's a funny thing about this. I guess that this could work for JUnit but sometimes ideas just need a different context to shine.. .the idea could be...
Michael Feathers
mfeathers256
Offline Send Email
Dec 4, 2006
3:37 pm
18505
File myfile = "stringliteral"; That won't compile, surely? Once that's sorted, Cédric has pointed you in the right direction. James ... [Non-text portions of...
James Abley
taboozizi
Offline Send Email
Dec 5, 2006
2:22 pm
18506
How can I create a unit test for this specific method, Here is the part of the code in the method: for(int i =0; i< count; i++) { Selling =...
avg_3000
Offline Send Email
Dec 6, 2006
8:00 am
18507
What whould you like to test? Which condition should always be false or always be true? Should something be not null?...
maschm77
Offline Send Email
Dec 6, 2006
11:55 am
18508
I would start by extracting a method for the conditional you're concerned about, so that the code becomes: for(int i =0; i< count; i++) { Selling =...
David Saff
dsaff
Offline Send Email
Dec 6, 2006
12:07 pm
18509
I've read all over the place that it's a bad idea to include multiple assertions in one test case, but it seems to me that sometimes it's very useful. For...
shefehs
Offline Send Email
Dec 6, 2006
9:44 pm
18510
Hey Guys, I'm testing a method. When I have the method by itself it tests fine. When I put another test in front of it like this: public void...
Ole Ersoy
ole_ersoy
Offline Send Email
Dec 6, 2006
10:09 pm
18511
I've been using multiple assert methods in my test cases for the past couple years and haven't died from it yet. Todd....
Bradley, Todd
todd404
Offline Send Email
Dec 6, 2006
10:24 pm
18512
... I would suggest that, too. Cedric's statement seems to assume that both generics and static typing are a good thing. I dislike generics (I type more to get...
J. B. Rainsberger
nails762
Offline Send Email
Dec 7, 2006
12:08 am
18513
... Jmock 2.0 (still in cvs only) incorporates static typing (hence refactor safe) with the jmock style. Nat, Steve, (if you are listening) if you make a beta...
Neil Swingler
neil_swingler
Online Now Send Email
Dec 7, 2006
8:06 am
18514
You could refactor the long if into a new method and then test that. for ... { if (Selling.isStatusBlah())... } and then you'd have a test method for...
citizen_kahn
Offline Send Email
Dec 7, 2006
2:36 pm
18515
The only thing I can think of is that one effect of adding the second test method is to call your setUp method twice. If you leave it with one test method,...
David Saff
dsaff
Offline Send Email
Dec 7, 2006
3:39 pm
18516
Hei Bjorn, (Norsk?) Hmmm, good observation! The ResourceSet that I create in the setUp likes be inside the test method, instead of in the setup method. It...
Ole Ersoy
ole_ersoy
Offline Send Email
Dec 7, 2006
4:55 pm
18517
Hi David, Thanks for the debug tip. I'll keep that in mind next time. I just posted back to Bjorn's reply. I tested moving resourceSet =...
Ole Ersoy
ole_ersoy
Offline Send Email
Dec 7, 2006
4:56 pm
18518
All, I've been working with Marat Boshernitsan from Agitar over the last month or so on a way to extend unit testing to include, not just concrete examples,...
David Saff
dsaff
Offline Send Email
Dec 7, 2006
6:27 pm
Messages 18489 - 18518 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