JUnit + ResourceSetListener [message #1837232] |
Mon, 25 January 2021 11:03  |
Eclipse User |
|
|
|
Hi EMFers!
We are writing a customised ResourceSetListener (to log changes on Papyrus Models) and are trying to unit test the thing (essentially writing regression tests to see whether it reacts to "the right" changes).
To do so, we are trying to programmatically create ResourceSetChangeEvents in JUnit. Currently, this fails with an IllegalArgumentException, because we are unable to retrieve the TransactionalEditingDomain we are trying to retrieve (through TransactionalEditingDomain.Registry.INSTANCE.getEditingDomain()).
Does anyone have input how you would go about testing these Listeners, or examples of such tests? I haven't manage to find anything suitable...
Cheers,
Grischa
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03099 seconds