<?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 Re: [Sticky] How to write a unit test in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88143#M59765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks your share, it's usefull&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2013 10:51:43 GMT</pubDate>
    <dc:creator>powerranger520</dc:creator>
    <dc:date>2013-02-28T10:51:43Z</dc:date>
    <item>
      <title>[Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88141#M59763</link>
      <description>When encountering a bug in Activiti, the easiest way to reach the Activiti team and see it fixed is to create an issue in the Activiti Jira (http://jira.codehaus.org/browse/ACT).Of course, a good description on how to reproduce the problem is crucial. But to make it really interesting for us (and to</description>
      <pubDate>Mon, 24 Sep 2012 12:29:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88141#M59763</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-09-24T12:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: [Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88142#M59764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When encountering a bug in Activiti, the easiest way to reach the Activiti team and see it fixed is to create an issue in the Activiti Jira (&lt;A href="http://jira.codehaus.org/browse/ACT" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT&lt;/A&gt;).&lt;BR /&gt;&lt;BR /&gt;Of course, a good description on how to reproduce the problem is crucial. But to make it really interesting for us (and to speed up things), the issue is accompanied by &lt;STRONG&gt;a unit test demonstrating the problem&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;To simplify this process, we've created a 'unit test template' project which you can use: &lt;A href="https://github.com/Activiti/activiti-unit-test-template" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/activiti-unit-test-template&lt;/A&gt;&lt;BR /&gt;Add your failing unit test, zip up the project and attach it to the issue.&lt;BR /&gt;&lt;BR /&gt;More about this template, read &lt;A href="http://www.jorambarrez.be/blog/2012/09/24/how-to-write-a-unit-test/" rel="nofollow noopener noreferrer"&gt;http://www.jorambarrez.be/blog/2012/09/24/how-to-write-a-unit-test/&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;so good, I will use it to submit bugs. &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 13:12:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88142#M59764</guid>
      <dc:creator>kafeitu</dc:creator>
      <dc:date>2012-09-25T13:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: [Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88143#M59765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks your share, it's usefull&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 10:51:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88143#M59765</guid>
      <dc:creator>powerranger520</dc:creator>
      <dc:date>2013-02-28T10:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: [Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88144#M59766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i'm getting error when i'm running unit test code you provided above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The error messages:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color:#404000;"&gt;SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i've tried to add config in maven as metioned in userguide.&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;dependency&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;groupId&amp;gt;org.slf4j&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;artifactId&amp;gt;slf4j-log4j12&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;version&amp;gt;1.7.2&amp;lt;/version&amp;gt;&lt;BR /&gt;&amp;lt;/dependency&amp;gt;&lt;/CODE&gt;&lt;SPAN&gt;however it does not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i've tried to add log4j, common-logging, slf4j jars to classpath and failed too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;can anyone help me? thanks a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 09:12:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88144#M59766</guid>
      <dc:creator>criszhao</dc:creator>
      <dc:date>2013-04-09T09:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: [Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88145#M59767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've updated the template to fix the logging: &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/activiti-unit-test-template/commit/a6b347263362d9b5385b81bd96cca225d2e16843" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/activiti-unit-test-template/commit/a6b347263362d9b5385b81bd96cca225d2e16843&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 14:17:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88145#M59767</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-04-10T14:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: [Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88146#M59768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've updated the template to fix the logging: &lt;A href="https://github.com/Activiti/activiti-unit-test-template/commit/a6b347263362d9b5385b81bd96cca225d2e16843" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/activiti-unit-test-template/commit/a6b347263362d9b5385b81bd96cca225d2e16843&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;thanks a lot. It works now. :lol:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 01:42:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88146#M59768</guid>
      <dc:creator>criszhao</dc:creator>
      <dc:date>2013-04-11T01:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: [Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88147#M59769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Add your failing unit test, zip up the project and attach it to the issue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 05:58:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88147#M59769</guid>
      <dc:creator>sonia600</dc:creator>
      <dc:date>2013-04-23T05:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: [Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88148#M59770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It seems that an account on Jira is required in order to submit a bug. How can I obtain it? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try to register, the following message is displayed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Not a member? To request an account, please contact your JIRA administrators."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I can't find any administrators address.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 20:49:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88148#M59770</guid>
      <dc:creator>tassoc1</dc:creator>
      <dc:date>2013-07-29T20:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: [Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88149#M59771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://activiti.org/community.html" rel="nofollow noopener noreferrer"&gt;http://activiti.org/community.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 14:05:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88149#M59771</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-08-01T14:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: [Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88150#M59772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How perform unit-test for process with expression, calling service bean?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I try change activiti.cfg.xml, add my bean , but exception raised:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; org.activiti.engine.ActivitiException: Unknown property used in expression: #{myBean.method()}&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In server this process working…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 11:56:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88150#M59772</guid>
      <dc:creator>alxt</dc:creator>
      <dc:date>2013-08-22T11:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: [Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88151#M59773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The unit tes here is not a SpringProcessEngineConfiguration, hence why spring beans won't work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 09:58:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88151#M59773</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-09-04T09:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: [Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88152#M59774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Of course, a good description on how to reproduce the problem is crucial. But to make it really interesting for us .thanks &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="http://www.redriverfurnace.com" rel="nofollow noopener noreferrer"&gt;http://www.redriverfurnace.com&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;air duct cleaning&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Sep 2013 11:49:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88152#M59774</guid>
      <dc:creator>brett1</dc:creator>
      <dc:date>2013-09-07T11:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: [Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88153#M59775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks jbarrez!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.casinoonlineperu.com/" rel="nofollow noopener noreferrer"&gt;&lt;SPAN style="color: #FDFDFF; text-decoration: underline;"&gt;juegos de casino&lt;/SPAN&gt;&lt;/A&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 05:40:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88153#M59775</guid>
      <dc:creator>martygross</dc:creator>
      <dc:date>2013-09-17T05:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: [Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88154#M59776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks jbarrez.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 08:39:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88154#M59776</guid>
      <dc:creator>ozkan</dc:creator>
      <dc:date>2014-03-17T08:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: [Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88155#M59777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear jbarrez,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I download your template from here:&lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/activiti-unit-test-template/blob/master/src/test/java/org/activiti/MyUnitTest.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/activiti-unit-test-template/blob/master/src/test/java/org/activiti/MyUnitTest.java&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just modify the location of the process file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; import org.activiti.engine.runtime.ProcessInstance;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.activiti.engine.task.Task;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.activiti.engine.test.ActivitiRule;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.activiti.engine.test.Deployment;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.junit.Rule;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.junit.Test;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import static org.junit.Assert.*;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public class UnitTestActiviti{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Rule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public ActivitiRule activitiRule = new ActivitiRule();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Test&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@Deployment(resources = {"E:/Dropbox/workspaceEclipse/eclipseJuno/customer/addition.bpmn"})&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public void test() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessInstance processInstance = activitiRule.getRuntimeService().startProcessInstanceByKey("Addition process");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;assertNotNull(processInstance);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Task task = activitiRule.getTaskService().createTaskQuery().singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;assertEquals("Activiti is awesome!", task.getName());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the message error I get: java.lang.Exception: Field activitiRule must implement MethodRule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.junit.runners.BlockJUnit4ClassRunner.validateRuleField(BlockJUnit4ClassRunner.java:181)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.junit.runners.BlockJUnit4ClassRunner.validateFields(BlockJUnit4ClassRunner.java:176)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.junit.runners.BlockJUnit4ClassRunner.collectInitializationErrors(BlockJUnit4ClassRunner.java:116)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.junit.runners.ParentRunner.validate(ParentRunner.java:269)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.junit.runners.ParentRunner.&amp;lt;init&amp;gt;(ParentRunner.java:66)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.junit.runners.BlockJUnit4ClassRunner.&amp;lt;init&amp;gt;(BlockJUnit4ClassRunner.java:59)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.junit.internal.builders.JUnit4Builder.runnerForClass(JUnit4Builder.java:13)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.&amp;lt;init&amp;gt;(JUnit4TestReference.java:33)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.&amp;lt;init&amp;gt;(JUnit4TestClassReference.java:25)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:48)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:38)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me, i am new to unitTest,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks inadvance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sophea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 09:53:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88155#M59777</guid>
      <dc:creator>sopheachhun</dc:creator>
      <dc:date>2014-05-09T09:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: [Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88156#M59778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you import this as a Maven project? Do you have anything else on your classpath unit test/test related?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried the template and it runs out of the box here. Does the default example process work for you?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 08:23:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88156#M59778</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-05-20T08:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: [Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88157#M59779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to use this template in activiti 5.17.0 to examine odd (but consistently reproduceable) behavior in TimerStartEvents. My first issue in doing this is to get the job executor started. The following code fails at the assertion &amp;lt;code&amp;gt;assertTrue(active)&amp;lt;/code&amp;gt;, even though my understanding is that the call to &amp;lt;code&amp;gt;setJobExecutorActivate(true)&amp;lt;/code&amp;gt; should be starting the jobExecutor for this ProcessEngine instance. What am I doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@Test&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public void test() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ProcessEngine processEngine = activitiRule.getProcessEngine();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; processEngine.getProcessEngineConfiguration().setJobExecutorActivate(true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; RepositoryService repositoryService = processEngine.getRepositoryService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; repositoryService.createDeployment()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; .addClasspathResource("org/activiti/test/ServiceTaskTimerTest.bpmn")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; .deploy();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ProcessInstance processInstance = activitiRule.getRuntimeService().startProcessInstanceByKey("serviceTaskTimerTest");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; assertNotNull(processInstance);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; boolean active = processEngine.getProcessEngineConfiguration().getJobExecutor().isActive();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; assertTrue(active);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// Other stuff…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 21:56:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88157#M59779</guid>
      <dc:creator>markv</dc:creator>
      <dc:date>2015-06-15T21:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: [Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88158#M59780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;have a look on &lt;/SPAN&gt;&lt;CODE&gt;org.activiti.engine.impl.test.JobTestHelper#waitForJobExecutorOnCondition(org.activiti.engine.ProcessEngineConfiguration, long, long, java.util.concurrent.Callable&amp;lt;java.lang.Boolean&amp;gt;)&lt;/CODE&gt;&lt;SPAN&gt;in the activiti source&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can see there how to start jobExecutor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 07:46:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88158#M59780</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2015-06-16T07:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: [Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88159#M59781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, Martin, this solved the problem. For those who may be interested, the relevant code to kick off the JobExecutor (class org.activiti.engine.impl.jobexecutor.JobExecutor) for a unit test looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// Use one of the many ways to construct an org.activiti.engine.ProcessEngine object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JobExecutor jobExecutor = processEngine.getProcessEngineConfiguration().getJobExecutor();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jobExecutor.start();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 15:19:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88159#M59781</guid>
      <dc:creator>markv</dc:creator>
      <dc:date>2015-06-16T15:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: [Sticky] How to write a unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88160#M59782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi jbarrez,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I received issue "Caused by: org.h2.jdbc.JdbcSQLException: Table "ACT_HI_PROCINST" already exists; SQL statement:" when I use the given junit template. May I know how to clean h2 before test?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition, I would like to know how to let activitirule to load configuration spring.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yong&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 09:51:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sticky-how-to-write-a-unit-test/m-p/88160#M59782</guid>
      <dc:creator>yongqiang</dc:creator>
      <dc:date>2015-06-30T09:51:12Z</dc:date>
    </item>
  </channel>
</rss>

