Have a look at 
https://git.magnolia-cms.com/gitweb/?p=magnolia_main.git;a=tree;f=magnolia-core/src/test/java/info/magnolia;h=f4fb7dcc21dbf3c0301bc8557f7c4ec7ea5ed081;hb=refs/heads/magnolia-4.5.x
There should be plenty of tests there so looking at them you should get pretty 
good idea on how to make your own.

You have 2 basic strategies - you can either use mock objects from 
info.mangolia.test.mock.jcr package or you can create your test case by 
extending RepositoryTestCase and use (And populate) real repo for your tests.

HTH,
Jan

On Aug 31, 2012, at 6:22 AM, siva rajan (via Magnolia Forums) wrote:

> Hi,
> 
>     I have created new sample  module in magnolia. In this module version 
> handler class, i have added a BootstrapSingleResource task for creating some 
> nodes and persist values  using the xml file which i placed in mgnl-bootstap 
> folder. 
> 
>   I want to develop junit  test case for testing the node data created by my 
> module. 
> 
> Kindly give me detailed step to prepare the junit test case for testing the 
> node values.
> 
> -- 
> Context is everything: 
> http://forum.magnolia-cms.com/forum/thread.html?threadId=09e08579-15ac-4a47-800f-f9326a539643
> 
> 
> ----------------------------------------------------------------
> For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------




----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to