Re: [JPP-Devel] Help with Mock Object for LayerViewPanel...

2007-05-03 Thread Sunburned Surveyor
Thanks for the help Bob. I'll rewrite my unit test in that way. I'm still curious about my mock object question. I did find that I could create an alternate com.vividsolutions.jump.workbench.ui package in my Eclipse project for the unit tests. I think this would only become a problem if I wanted

Re: [JPP-Devel] Help with Mock Object for LayerViewPanel...

2007-05-03 Thread Robert F. Littlefield
Just pass in null for the panel parameter. LayerRenderer lr = new LayerRenderer(null, null); will return you a LayerRenderer object. On 5/3/07, Sunburned Surveyor <[EMAIL PROTECTED]> wrote: I'm trying to cook up a mock object for the LayerViewPanel class, which will allow me to test elements o

[JPP-Devel] Help with Mock Object for LayerViewPanel...

2007-05-03 Thread Sunburned Surveyor
I'm trying to cook up a mock object for the LayerViewPanel class, which will allow me to test elements of OpenJUMP's rendering system. However, I've never had a lot of experience writing or using mock objects in unit testing, and I have run into a couple of challenges. I was hoping I could explain