> Hi Guys,
>   
> I’m creating a test class for the new Legend View.
> Is there a standard project where I should put this? Do I need to create a 
> new plugin for the test? Or would putting it in 
> net.refractions.udig.project.tests.ui be alright?
>  
>  
>  

Each plugin in uDig has a place where its tests live; you should not need to 
make a new test plugin. I think the one you mention is correct.
> Should it run the same as a simple JUnit plugin test? For example, create the 
> class, add dependency to project being tested, then run as JUnit Plugin Test?
>  
>   
>  
>  

You could split your tests into two test cases (i.e. one for simple JUnit tests 
focused on data structures) but most of your tests will be Plugin Tests as you 
will need to poke at the user interface (and a live EMF model).  

I also note you can use SWT Bot to automated some of the button poking; see the 
Eclipse Plugins book for details.  
> Thanks,
> Naz Chan
>   
> Ps. Sorry bout all the questions, still finding my way through..
>   
>  
>   ________________________________    
> The contents of this email are confidential and may be subject to legal or 
> professional privilege and copyright. No representation is made that this 
> email is free of viruses or other defects. If you have received this 
> communication in error, you may not copy or distribute any part of it or 
> otherwise disclose its contents to anyone. Please advise the sender of your 
> incorrect receipt of this correspondence.
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>  
>  


_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to