Re: JUnit test method generation
Re: JUnit test method generation
- Subject: Re: JUnit test method generation
- From: Ray Kiddy <email@hidden>
- Date: Sat, 12 Dec 2009 16:02:02 -0800
On Dec 12, 2009, at 8:14 AM, Ramsey Lee Gurley wrote:
Hi all,
I'm wondering if there is an easier way to generate a JUnit test
method stub for a test class that already exists. Let's say I have
a class Foo with method bar(). When I generate the JUnit test
FooTest in eclipse, I can select the methods and generate the source
stub for testBar() and all the other methods on the class. Now if I
add the method baz(), is there an easy way to generate the stub for
that test method, or do I have to key them in manually ever after?
Is there some way to link the two classes so that Eclipse
automatically generates the test methods as new methods are added to
the class?
Ramsey
_______________________________________________
You are asking for a sort of "eogeneration" for junit tests. (In other
words, the "EOGenerate" keeps a model and the java file synchronized
and an analogous thing would be useful for junit tests.) This is not a
bad idea. It does seem like a good idea. But, looking at what eclipse
provides now, it seems clear that this is not available now.
- ray
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden