<?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: Deployment annotation in unit test: undeploy does not work in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/deployment-annotation-in-unit-test-undeploy-does-not-work/m-p/109521#M76876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's really strange. Didn't you see any exception when running the test?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because, the ActivitiRule overrides the "finished()" to undeploy, called by JUnit in a finally-block. So when undeploying was unsuccessful, you should have seen &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a stacktrace (@see ActivitiRule:118).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2012 06:44:56 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2012-06-13T06:44:56Z</dc:date>
    <item>
      <title>Deployment annotation in unit test: undeploy does not work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deployment-annotation-in-unit-test-undeploy-does-not-work/m-p/109518#M76873</link>
      <description>With V 5.9, in a unit test, if I use the deployment annotation , it is said in the user guide that the process should be undeployed at the end of the test but it is not the case:&amp;nbsp;&amp;nbsp; @Test&amp;nbsp;&amp;nbsp;&amp;nbsp; @Deployment(resources = { "com/toto/MyProcess.bpmn20.xml" })&amp;nbsp;&amp;nbsp;&amp;nbsp; public void testMyProcess() &amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; […]&amp;nbsp;&amp;nbsp;</description>
      <pubDate>Thu, 31 May 2012 14:03:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deployment-annotation-in-unit-test-undeploy-does-not-work/m-p/109518#M76873</guid>
      <dc:creator>sor1</dc:creator>
      <dc:date>2012-05-31T14:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment annotation in unit test: undeploy does not work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deployment-annotation-in-unit-test-undeploy-does-not-work/m-p/109519#M76874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you also use this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;@Rule&lt;BR /&gt;&amp;nbsp; public ActivitiRule activitiRule = new ActivitiRule();&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 16:50:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deployment-annotation-in-unit-test-undeploy-does-not-work/m-p/109519#M76874</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-05-31T16:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment annotation in unit test: undeploy does not work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deployment-annotation-in-unit-test-undeploy-does-not-work/m-p/109520#M76875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hmmm you most likely are, otherwise the @Deployment would not work… hmmmm&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 16:52:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deployment-annotation-in-unit-test-undeploy-does-not-work/m-p/109520#M76875</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-05-31T16:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment annotation in unit test: undeploy does not work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deployment-annotation-in-unit-test-undeploy-does-not-work/m-p/109521#M76876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's really strange. Didn't you see any exception when running the test?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because, the ActivitiRule overrides the "finished()" to undeploy, called by JUnit in a finally-block. So when undeploying was unsuccessful, you should have seen &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a stacktrace (@see ActivitiRule:118).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 06:44:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deployment-annotation-in-unit-test-undeploy-does-not-work/m-p/109521#M76876</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-06-13T06:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment annotation in unit test: undeploy does not work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deployment-annotation-in-unit-test-undeploy-does-not-work/m-p/109522#M76877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My test is successful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I add the advised lines:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@Rule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public ActivitiRule activitiRule = new ActivitiRule();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The result is the same.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 09:57:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deployment-annotation-in-unit-test-undeploy-does-not-work/m-p/109522#M76877</guid>
      <dc:creator>sor1</dc:creator>
      <dc:date>2012-06-25T09:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment annotation in unit test: undeploy does not work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deployment-annotation-in-unit-test-undeploy-does-not-work/m-p/109523#M76878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I presume you're testing against an in-memort H2 database? Are you 100% sure you didn't deploy the process manually through explore and NO exception stack traces are shown in the console (even though your test is successful, still look at sys out). Because the code is what it is… If undeploying fails, you should see it and the reason…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 10:13:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deployment-annotation-in-unit-test-undeploy-does-not-work/m-p/109523#M76878</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-06-25T10:13:24Z</dc:date>
    </item>
  </channel>
</rss>

