<?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 do i Unit test TimerBoundaryEvent? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-unit-test-timerboundaryevent/m-p/93528#M64011</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I`m a bit lost around JUnit testing a TimerBoundaryEvent? Any ideas on how to stop/wait/pause/alter date to be able to test this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I read somewhere about &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;activitiRule.setCurrentTime(new Date((new Date().getTime()+1000*60*5)));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But how do i set this half way through my unit test?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Derick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2012 13:17:18 GMT</pubDate>
    <dc:creator>potgieterde</dc:creator>
    <dc:date>2012-10-26T13:17:18Z</dc:date>
    <item>
      <title>How do i Unit test TimerBoundaryEvent?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-unit-test-timerboundaryevent/m-p/93528#M64011</link>
      <description>Hi,I`m a bit lost around JUnit testing a TimerBoundaryEvent? Any ideas on how to stop/wait/pause/alter date to be able to test this?I read somewhere about activitiRule.setCurrentTime(new Date((new Date().getTime()+1000*60*5)));But how do i set this half way through my unit test?ThanksDerick</description>
      <pubDate>Fri, 26 Oct 2012 13:17:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-unit-test-timerboundaryevent/m-p/93528#M64011</guid>
      <dc:creator>potgieterde</dc:creator>
      <dc:date>2012-10-26T13:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do i Unit test TimerBoundaryEvent?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-unit-test-timerboundaryevent/m-p/93529#M64012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Altering date that activiti uses can be done using the class org.activiti.engine.impl.util.ClockUtil.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But you still need to wait until the job-executor has finished processing the timer-job, after changing the current time. Take a look at the method waitForJobExecutorToProcessAllJobs on src.main.java.org.activiti.engine.impl.test.AbstractActivitiTestCase, for a safe way to do this…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 10:47:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-unit-test-timerboundaryevent/m-p/93529#M64012</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-29T10:47:04Z</dc:date>
    </item>
  </channel>
</rss>

