• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: JUnit test method generation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: JUnit test method generation
      • From: Ramsey Lee Gurley <email@hidden>
References: 
 >JUnit test method generation (From: Ramsey Lee Gurley <email@hidden>)

  • Prev by Date: JUnit test method generation
  • Next by Date: Re: JUnit test method generation
  • Previous by thread: JUnit test method generation
  • Next by thread: Re: JUnit test method generation
  • Index(es):
    • Date
    • Thread