According this topic I found two different views: -) In the sourceforge FAQ they propose to use a separate test package for the unit tests. -) In various...
3209
Jim Cheesman
mogrim
Nov 8, 2001 8:13 am
... Couldn't you do this using ant - set the stuff up, run the unit tests, tear it down again. ... -- * Jim Cheesman * Trabajo: jchees@... - (34)(91)...
3208
gavinlas@...
gavinlas
Nov 8, 2001 5:13 am
I have had a quick look at JXUnit. It works in a similar way, but seems too complex. I want something simple.. Cheers ... and JXQuick. ... (method ... data, ...
3207
Herry
herrykoh@...
Nov 8, 2001 4:56 am
Try AntHill at http://www.urbancode.com/projects/anthill/default.xml Just came across that a few days ago as well, haven't tried it out yet. Cheers, Herry ... ...
3206
jbase@...
Nov 8, 2001 3:37 am
The reason I want to have a oneTimeSetup() and oneTimeTearDown() is to have the ability to create an extensive directory/file creation for a class that ...
3205
Robert Watkins
robertdw26
Nov 8, 2001 2:09 am
... *shrug* Do what works for you. I came up with mine in about 30 minutes. If your first attempt doesn't work, change it. Okay, here's mine... <project>/ ...
3204
rakesh_us_ca@...
rakesh_us_ca
Nov 8, 2001 2:02 am
Hi, I am looking for some document/links which recommends a source directory structure for J2EE applications as well as a process which can automate checkout/...
3203
FrankSun
leafsun2001
Nov 8, 2001 1:18 am
I mean is if I should build mock for HttpServletResponse, HttpServeltRequest ..first, next do my unint test :) ... From: Steve Freeman To:...
3202
Robert Leftwich
rleftwic
Nov 7, 2001 11:31 pm
... You might want to take a look at JxUnit at http://sourceforge.net/projects/jxunit/ or http://quickutil.sourceforge.net/view/Main/JXUnit where it says: ...
3201
gavinlas@...
gavinlas
Nov 7, 2001 10:58 pm
Hello, I have been looking at creating a configurable test suite and test cases. At the moment we hard-code all the data into our test cases. This makes it...
3200
Steve Freeman
smg_freeman
Nov 7, 2001 8:48 pm
sorry, I don't understand your question. Steve ... From: FrankSun To: junit@yahoogroups.com Sent: Wednesday, November 07, 2001 9:28 AM Subject: Re: [junit] Can...
3199
Matt Caswell
elessaruk
Nov 7, 2001 6:57 pm
I have knocked together a patch for JUnit 3.7 which enables you to - in effect - pick up mock objects from your CLASSPATH - i.e. you do not need to do anything...
3198
Jim Cheesman
mogrim
Nov 7, 2001 3:27 pm
... Yes, but to get to a point where we can unit test it we may need to put it in a "real" environment. ... Integration is more black box, at least to my way...
3197
Jason Rogers
jacaetev
Nov 7, 2001 1:30 pm
I would suggest searching the archives for this topic. There are several opinions there about testing your privates and package protecteds. -jason ... Keep it...
3196
pholser@...
pholser
Nov 7, 2001 1:13 pm
... enough ... find ... if i'm not mistaken, you should never depend on test methods in a class being executed in any particular order. so you could never ...
3195
Paolo Perrotta
pperrotta@...
Nov 7, 2001 10:41 am
... The rationale of the system is that each test must be independent of others. That's why setUp() and tearDown() are called for each single test case. Why do...
3194
FrankSun
leafsun2001
Nov 7, 2001 9:27 am
If I will build mockobjects above the HttpServletResponse, HttpServeltRequest, HttpSession? ... From: Steve Freeman To: junit@yahoogroups.com Sent: Wednesday,...
3193
FrankSun
leafsun2001
Nov 7, 2001 9:23 am
Different kind of unit tests There are several kinds of unit testing frameworks. We categorize them in 3 types : 1.. Type 1 : code logic unit testing. Probably...
3192
Stefan Bodewig
sbodewig
Nov 7, 2001 9:07 am
... Maybe <http://jakarta.apache.org/cactus/> can help you? Stefan...
3191
Jim Cheesman
mogrim
Nov 7, 2001 9:03 am
... Check out cactus at jakarta.apache.org. It'll do what you want. -- * Jim Cheesman * Trabajo: jchees@... - (34)(91) 724 9200 x 2360 Perspective is in...
3190
Steve Freeman
smg_freeman
Nov 7, 2001 9:02 am
You might take a look at the Mock Object library at www.mockobjects.com ... From: FrankSun To: junit@yahoogroups.com Sent: Wednesday, November 07, 2001 8:31 AM...
3189
FrankSun
leafsun2001
Nov 7, 2001 8:55 am
thx! But I only know Easymock is a framework for unit test interface. I have made some practice of Easymock for testing interface. It is a wonderful tools make...
3188
Shane Duan
wolfdancer_dodo
Nov 7, 2001 8:45 am
Since HttpServletRequest and HttpServletResponse are both interface, I would personally strongly suggest the EasyMock, whcih can be found at the following...
3187
Carsten Zerbst
carsten.zerbst@...
Nov 7, 2001 8:39 am
Hello, I'm pretty new to java, so please excuse a dumb question. I've got a class to test, my setup is something like public class InformationDirectoryTest...
3186
FrankSun
leafsun2001
Nov 7, 2001 8:30 am
For our project is base on Servlet&Jsp tech, and we want to unit test out class. When a class use HttpServletRequest & HttpServetResponse object, and I test it...
3185
Shane Duan
wolfdancer_dodo
Nov 6, 2001 6:28 pm
Actually, it doesn't matter much for me to argue the possibilities of break. After spending time on building mock objects, controllers and setting up...
3184
Eric Vought
eric_vought
Nov 6, 2001 5:27 pm
One of Brian Marick's key points in his book is that people don't make complex mistakes. It's the simple things that are most likely to go wrong: cut and paste...
3183
J. B. Rainsberger
nails762
Nov 6, 2001 4:38 pm
Actually, it *can* break, depending on your naming conventions. public class Broken { private String message; public Broken(String message) { message =...
3182
Eric Vought
eric_vought
Nov 6, 2001 4:21 pm
Typically, the way you accomplish both objectives (hiding functionality and exposing it for unit testing) is to use a Facade. You expose the methods that you...
3181
Strebel, Dr. Oliver
strebelel
Nov 6, 2001 3:22 pm
Hi Carsten! Have a look at the faq-subdirectory in the JUnit documentation. There you will find: public static Test suite() { TestSuite suite= new TestSuite();...