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...
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...
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...
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...
... 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...
JUnit reinstantiates the test class before each test method. Move the assignment to setUp(). -- Cedric http://testng.org ... -- Cédric [Non-text portions of...
... 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...
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@...
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...
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...
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...
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...
... 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...
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...
... 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...
... 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...
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...
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,...
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...
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,...