Announcement Announcement Module
No announcement yet.
Testing JobDetailBean Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Testing JobDetailBean

    I can't find any convenient way of testing JobDetailBean.

    I could create a SimpleTriggerBean in a test context, but injecting a Mock service in a jobDataMap is hassle for me.

    Ideally, I'd like to be able to use the JobDetailBean as defined in my Spring configuration and simply call the executeInternal() method on its associated jobClass, thus avoiding any trigger, scheduler, abstracting my test from the Scheduler context.

    Is there any way to do that with Spring 2.5? What about 3.0?

    Thanks for pointing me to any available documentation on that or sharing experience.