my EMF model generated tests... [message #892340] |
Wed, 27 June 2012 19:37 |
|
Hi,
I am trying to finally get some Junit tests running on my EMF model. The EMF model was created and code was generated for an RCP application. The model plugin itself "should" be standalone - right?
Well, my question is this: I generated the test code from the .genmodel. It created a project with appropriately stubbed out code. I try to run one of the resulting XXXTest.java files as Run As->Junit test .... and it fails to be able to load the class.
Is there a tutorial or information out there on doing this? I am just trying to test the model only - just create an object, or series of objects in my model, and verify that it is then providing the data I expect. This way we can create some automated tests that don't rely on the GUI display, and can test other aspects of the product.
I hope someone out there can help!
-Sharon
|
|
|
|
Re: my EMF model generated tests... [message #892505 is a reply to message #892397] |
Thu, 28 June 2012 13:34 |
|
Hi Ed,
I'm not sure what I changed....but with your hint I got it working. I basically removed the whole project, had the genmodel recreate it and voila! It worked!
I think it had something to do with the pom file associated with it at the time. It was probably changed early on when we were creating our product build (tycho/maven) and we never looked at the .tests projects until now!
Thanks!!
Sharon
|
|
|
Powered by
FUDForum. Page generated in 0.03436 seconds