Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [emf-dev] EMF and EasyMock

Stefan,

Best to use the EMF newsgroup to ask questions like this.

I don't know much about this mock stuff, but I'm not sure it makes sense to mock a resource or a resource set.   There's all kinds of important behavior they need to implement.  Why not use an actual resource set with properly implemented resources.


Dimov, Stefan wrote:
Hi,
 
For my test purposes I’m mocking (with easy mock) classes like:
 
org.eclipse.emf.transaction.TransactionalEditingDomain
org.eclipse.emf.transaction.RecordingCommand
org.eclipse.emf.transaction.Transaction
org.eclipse.emf.ecore.resource.ResourceSet
org.eclipse.emf.ecore.resource.Resource
 
and some others. But I have difficulties using those mock classes, because when I try to execute my tests I see that I have to mock a lot more other classes and it becomes really messy.
 
Could you recommend some (easy mock based) framework or test patterns or anything, which will allow me to use emf mock classes without me playing into this “Mock the whole Eclipse” movie.
 
10x in advance!
Best wishes!
 

_______________________________________________ emf-dev mailing list emf-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/emf-dev

Back to the top