I believe there's a start module annotation that you can use in a unit
test. I don't know how completely it starts the module so you would need to
test that out.

-Darius (by phone)
On Apr 14, 2012 1:39 PM, "Mark Goodrich" <[email protected]> wrote:

> I’ve been thinking for a while about configuring module testing so it is
> possible to test if another module plays nicely with the Sync module.  I
> was actually working on this last week and put it aside for a bit, but the
> current Metadata Sharing/Sync issue has put it forefront in my mind again.
> ****
>
> ** **
>
> Has anybody written any unit tests for a module that fire up another
> omod?  We can package up a sync test jar and make it available to other
> modules so they can use it’s mock-sync testing framework… we did a similar
> thing with the Html Form Entry test framework for use in the HFE 1.9 ext
> module.  I’m not an expert with Spring configuration, and what I don’t know
> how to do is to start the sync module (and register it’s Hibernate
> interceptor) within a unit test for another module.  I played around with
> adding references to the Sync hibernate mapping files to the other module’s
> test-hibernate.cfg.xml, as well as adding the sync service and interceptor
> beans to the other module’s TestingApplicationContext.xml, but have had no
> luck so far.  Any ideas?****
>
> ** **
>
> Take care,****
>
> Mark****
>
> ** **
>
> ** **
>
> ** **
> ------------------------------
> Click here to 
> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from 
> OpenMRS Developers' mailing list

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

Reply via email to