Hi,
I'm a huge fan of EMF and think it's a great base to
build a automated testing framework around, and I
thought Tuscany might be a good home umbrella for it.
Here's an example of what I'm talking about.
EMF allows us to get specific
objects from the resource that contains them like this
(Gets the dependency management element of a Maven
POM):
DependencyManagement
dependencyManagement =
(DependencyManagement)
parentResource.getEObject("//@project/@dependencyManagement");
However it's quite possible that the return object is
null, and NPEs will get thrown if the client code
using the generated model api does not catch them.
In this type of scenario we could generate tests per a
designer rule that all NPE's caused by object lookup
via fragments should be caught and an informative
message displayed.
Thus the general idea is to enumerate all the
possibilities that we want covered within Ecore
generated code and discover each pattern per rules.
This could be done real time via an eclipse plugin, or
via a maven code analyzer report.
Thoughts?
Cheers,
- Ole
____________________________________________________________________________________
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]