5 Replies Latest reply: Dec 19, 2011 12:36 PM by Rob Cernich RSS

Eclipse Tooling - Generating Test

Magesh Bojan Master

I was following this guide to create my SwitchYard project and found that the Test is not generated at all. I get only a blank Test file. It seem to be asking a @Service annotation on the interface. Any one else getting this? I am using  Eclipse 3.6.0, m2eclipse 1.0.100.xxxx

  • 1. Re: Eclipse Tooling - Generating Test
    Rob Cernich Master

    Hey Magesh,

     

    Is there anything in the Eclipse error log?  I've been using this for a while now with Eclipse 3.7 and haven't seen any issues like the one you're describing.  I've even been able to create a test class in a project that is not a SY project.

     

    If you could provide more information, or some some steps to recreate, that would certainly help.

     

    Best,

    Rob

  • 2. Re: Eclipse Tooling - Generating Test
    Magesh Bojan Master

    Here is what I did.

     

    1. Upgraded my 3.6.0 Eclipse's m2eclipse to 1.0.100.xxx as per the docs.

    2. Created new SwitchYard 0.3.0.Final project.

    3. Created a new Java Interface called ExampleService with one method

    String sayHello(String name);
    

    4. Selecting this Interface created a new Bean Service

    5. Selecting the same Interface trying to create a Service Test shows warning

    com.example.switchyard.switchyard_example.ExampleService is not used as a SwitchYard service.
    

    6. Clicking Finish generates an empty ExampleServiceTest file.

  • 3. Re: Eclipse Tooling - Generating Test
    Rob Cernich Master

    Hey Magesh,

     

    Sorry for taking so long to get to this.

     

    I'm in the process of tracking this down.  It looks like this is an issue when running the SY tools in Eclipse 3.6.  I'll let you know what I find.

     

    Best,

    Rob

  • 4. Re: Eclipse Tooling - Generating Test
    Rob Cernich Master

    Hey Magesh,

     

    I've confirmed that this is an issue when using SY tools on top of Eclipse 3.6.  (I should have tested this, as opposed to assuming it would work.)  I should have a fix committed shortly.  Here's the JIRA: https://issues.jboss.org/browse/SWITCHYARD-593

     

    Best,

    Rob

  • 5. Re: Eclipse Tooling - Generating Test
    Rob Cernich Master

    Hey Magesh,

     

    I've committed a fix for this.  Once the pull is processed, the new Service Test wizard should work in 3.6, just as it works in 3.7.

     

    Sorry, er, thanks for testing this out.

     

    Best,

    Rob