<?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 JobTestHelper in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/jobtesthelper/m-p/178976#M132106</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 recently upgraded from version 5.14 to 5.17. I see that the method waitForJobExecutorToProcessAllJobs is moved from TestHelper to JobTestHelper. This method calls the method areJobsAvailable. The implementation of this method was changed from this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public static boolean areJobsAvailable(ProcessEngineConfigurationImpl processEngineConfiguration) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return !processEngineConfiguration&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .getManagementService()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .createJobQuery()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .executable()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .list()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .isEmpty();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public static boolean areJobsAvailable(ManagementService managementService) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return !managementService.createJobQuery().list().isEmpty();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The .executable() was removed. Is there a reason for this? This method returns now "true" if there are timers waiting. It wasn't the case before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I made my own implementation of this method and putted the .executable() back. But the query always returns an empty list even if I have waiting jobs with retries &amp;gt; 0 and dueDate = null. Is this a bug?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your support.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jan 2015 11:59:47 GMT</pubDate>
    <dc:creator>fbrcls</dc:creator>
    <dc:date>2015-01-06T11:59:47Z</dc:date>
    <item>
      <title>JobTestHelper</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jobtesthelper/m-p/178976#M132106</link>
      <description>Hi,I recently upgraded from version 5.14 to 5.17. I see that the method waitForJobExecutorToProcessAllJobs is moved from TestHelper to JobTestHelper. This method calls the method areJobsAvailable. The implementation of this method was changed from this:&amp;nbsp; public static boolean areJobsAvailable(Proces</description>
      <pubDate>Tue, 06 Jan 2015 11:59:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jobtesthelper/m-p/178976#M132106</guid>
      <dc:creator>fbrcls</dc:creator>
      <dc:date>2015-01-06T11:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: JobTestHelper</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jobtesthelper/m-p/178977#M132107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We changed our tests to use the new async executor and the check if jobs are available should not check for executable anymore with the tests logic we have currently.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 13:28:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jobtesthelper/m-p/178977#M132107</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-01-08T13:28:25Z</dc:date>
    </item>
  </channel>
</rss>

