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...
Show off your group to the world. Share a photo of your group with us.

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 6825 - 6854 of 22044   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
6825
... It was an intentional simplification, and it was also an example of production code. I've done the same thing in many production systems, and I rarely test...
Curt Sampson
cjstokyo
Offline Send Email
Feb 1, 2003
11:14 am
6826
Hi, I would like to invoke my unit test from ant and include java style properties that are accesible from the Junit test code. For example, the file...
Vladimir Blagojevic
vladimir@...
Send Email
Feb 1, 2003
11:14 am
6827
... This sort of ties in to something I've been thinking about for a while. Why does a TestCase inherit all of its assertion routines? I found a while back...
Curt Sampson
cjstokyo
Offline Send Email
Feb 1, 2003
11:14 am
6828
That tells me what technology you're using, but that doesn't tell me what you're trying to test. "I want to test the create operation on an entity bean." CMP?...
J. B. Rainsberger
nails762
Offline Send Email
Feb 1, 2003
11:29 am
6829
So said Vladimir Blagojevic on 1/31/2003 -------------------- ... the ... within ... Are you looking for a tool that already does this? It's so simple, just...
J. B. Rainsberger
nails762
Offline Send Email
Feb 1, 2003
2:30 pm
6830
... [...] ... If you've done this many times it seems a reusable mock object could be useful across all these implementations. Something as fundamental and ...
Scott Stirling
jrun5
Offline Send Email
Feb 2, 2003
2:37 am
6831
Have a visit to http://ant.apache.org/manual/index.html and look at the <property> task's file attribute. <target name="runtests"> <property...
Scott Stirling
jrun5
Offline Send Email
Feb 2, 2003
2:55 am
6832
Quoth Curt Sampson: [...] ... Since these routines are static methods of Assert, I always had the impression that TestCase subclasses Assert so you can write ...
Steven Taschuk
staschuk@...
Send Email
Feb 2, 2003
4:20 pm
6833
Quoth Curt Sampson: [...] ... I see your point that having to mock both ConnectionFactory and Connection is annoying, and the addition of the first method ...
Steven Taschuk
staschuk@...
Send Email
Feb 2, 2003
4:20 pm
6834
... I thought I addressed the point quite directly: make this simple change to the code and you'll be able to test it easily. ... Sure. But even just doing the...
Curt Sampson
cjstokyo
Offline Send Email
Feb 2, 2003
4:20 pm
6835
... [...] ... So maybe you would say logging isn't an aspectual concern either. You are talking about aspects in a system, which is exactly my point....
Scott Stirling
jrun5
Offline Send Email
Feb 2, 2003
10:43 pm
6836
I have a class "Complex" representing complex numbers, and i have a class "ComplexTest" testing them. i get a NullPointerException at the following peice of...
Ro <rrt24@...>
superslip103
Offline Send Email
Feb 3, 2003
12:21 am
6837
... Well, the aspectual Java papers are on my list of things to read very, very soon (i.e., I'm carrying them around in my bag every day), but unfortunately ...
Curt Sampson
cjstokyo
Offline Send Email
Feb 3, 2003
12:21 am
6838
... Because it would be quite a lot of work to save just this one line of code: Connection con = factory.getConnection(); BTW, "as needed" means basically you...
Curt Sampson
cjstokyo
Offline Send Email
Feb 3, 2003
12:21 am
6839
... Ooo! This idea I really like! So we could use the standard asserts where we care to, but override asserts with specific signatures where and when we...
Curt Sampson
cjstokyo
Offline Send Email
Feb 3, 2003
12:21 am
6840
Hi, I would like to invoke my unit test from ant and include java style properties that are accesible from the Junit test code. For example, the file...
Vladimir Blagojevic
vladimir@...
Send Email
Feb 3, 2003
12:21 am
6841
You didn't initialize the member variables in setUp(). Instead you created two local variables and initialized them (but these can't be seen outside of ...
Scott Stirling
jrun5
Offline Send Email
Feb 3, 2003
12:44 am
6842
Why not just extend TestCase with specialized, re-usable, TestCase types? I've done this on two big projects where it's been helpful to have a base TestCase...
Scott Stirling
jrun5
Offline Send Email
Feb 3, 2003
1:13 am
6843
... [...] ... As answered before, a good way to achieve this is to have your test read e.g. test.properties and your and build procedure prepares that file....
Davor Cengija
java-junit@...
Send Email
Feb 3, 2003
7:55 am
6844
... From one Vladimir to another one :-) take a look at the PropertyManager and XMLPropertyManager classes of the Junit-addons library:...
Vladimir R. Bossicard
vbossica
Offline Send Email
Feb 3, 2003
8:24 am
6845
... AFAIK it's only for convenience. ... several assertion classes have already been developed and can be found in the JUnit-addons library. (sorry for the...
Vladimir R. Bossicard
vbossica
Offline Send Email
Feb 3, 2003
8:29 am
6846
Most of my tests have a catch all, catch block, which simplay calls fail(e.toString()); Can i suggest that the following fail() method be added for the next ...
andy_ipaccess <andrew...
andy_ipaccess
Offline Send Email
Feb 3, 2003
3:24 pm
6847
hi all, I am new to the list. I wish you all a wonderfull day. Dan lupu...
Dan Lupu
tigerboots22
Offline Send Email
Feb 3, 2003
3:24 pm
6848
... I do already. In fact, many times: we have a base test case for our company which adds various handy generic stuff (such as byte-array comparisons),...
Curt Sampson
cjstokyo
Offline Send Email
Feb 3, 2003
3:25 pm
6849
You don't need this - your test methods may happily throw any Exception, which will generate a nifty error for your testcase....
Ilja Preuss
ipreussde
Offline Send Email
Feb 3, 2003
3:31 pm
6850
... By doing so you just loose the most important information when you have to debug something: the stacktrace! simply add a 'throws Exception' to the...
Vladimir R. Bossicard
vbossica
Offline Send Email
Feb 3, 2003
3:40 pm
6851
... Agreed. For what it's worth, I generally create separate, custom assertion classes. That is, rather than using inheritance, I use delegation. That way...
Mike Clark
clarkware
Offline Send Email
Feb 3, 2003
3:40 pm
6852
Hello everyone, I have a project on SourceForge.net which I started a while ago. I named it "Extensible Java Unit-testing Framework" (ejuf for short). This ...
Francois Beausoleil
francois_bea...
Offline Send Email
Feb 3, 2003
5:37 pm
6853
Hello again, One thing I forgot to mention is that EJUF aims to provide complete backwards compatibility with JUnit... Thanks ! Francois On Mon, 03 Feb 2003...
Francois Beausoleil
francois_bea...
Offline Send Email
Feb 3, 2003
5:40 pm
6854
(Replying to several posts) ... And following on that, you can use a combination of both methods. Each time you develop custom assetions, put them in a...
Manuel Amago
mamagouk
Offline Send Email
Feb 3, 2003
6:28 pm
Messages 6825 - 6854 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