<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How testing TimerBoundaryEvent in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-testing-timerboundaryevent/m-p/67398#M43022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this is my fist post on the forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to create a junit tests for the process of my application. I'm using spring integration for my application. I have troubles for the processes including a TimerBoundaryEvent: events are not fired. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I suppose this is because the JobExecutor cannot access uncommitted process data on the DB. I usually configure tests not to commit with @TransactionConfiguration(defaultRollback = true) but even if I change the configuration (defaultRollback = false) events are not fired.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have a standard pattern to test processes that use TimerBoundaryEvent? How do you suggest to approach the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Massimo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jul 2011 12:58:16 GMT</pubDate>
    <dc:creator>mlegnani</dc:creator>
    <dc:date>2011-07-01T12:58:16Z</dc:date>
    <item>
      <title>How testing TimerBoundaryEvent</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-testing-timerboundaryevent/m-p/67398#M43022</link>
      <description>Hi all,this is my fist post on the forum.I'm trying to create a junit tests for the process of my application. I'm using spring integration for my application. I have troubles for the processes including a TimerBoundaryEvent: events are not fired. I suppose this is because the JobExecutor cannot acc</description>
      <pubDate>Fri, 01 Jul 2011 12:58:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-testing-timerboundaryevent/m-p/67398#M43022</guid>
      <dc:creator>mlegnani</dc:creator>
      <dc:date>2011-07-01T12:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: How testing TimerBoundaryEvent</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-testing-timerboundaryevent/m-p/67399#M43023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's indeed a common problem when using Spring in Unit testing. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Spring starts a transaction for every test method, but this means that the job executor transactions can't see the data of course.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We test it by manually firing our timers using the managementService.executeJob() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jobs (like timers) can be queried using the managementService.createJobQuery() operations.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2011 07:20:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-testing-timerboundaryevent/m-p/67399#M43023</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-07-04T07:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: How testing TimerBoundaryEvent</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-testing-timerboundaryevent/m-p/67400#M43024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I understand. I'll change my tests, manually firing&amp;nbsp; timers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Massimo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2011 11:21:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-testing-timerboundaryevent/m-p/67400#M43024</guid>
      <dc:creator>mlegnani</dc:creator>
      <dc:date>2011-07-04T11:21:05Z</dc:date>
    </item>
  </channel>
</rss>

