<?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: CDI in JUnit in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cdi-in-junit/m-p/196883#M150013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot for the quick answer! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've hoped to got off lightly, but you're right: to do complex (integration) test I have to use little bit more complex approach then a plain JUnit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Nov 2014 07:41:11 GMT</pubDate>
    <dc:creator>yuryshaban</dc:creator>
    <dc:date>2014-11-26T07:41:11Z</dc:date>
    <item>
      <title>CDI in JUnit</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cdi-in-junit/m-p/196881#M150011</link>
      <description>Hello!I'm using nice JEE7 stuff named CDI. It's very useful one and I'm (personally) happy that activiti works with CDI properly. Thanks a lot!But I've got a question:at runtime CDI works great, but, seems, if I'm trying to run JUnit tests - CDI injects of &amp;lt;? extends JavaDelegate&amp;gt; don't work.</description>
      <pubDate>Tue, 25 Nov 2014 12:33:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cdi-in-junit/m-p/196881#M150011</guid>
      <dc:creator>yuryshaban</dc:creator>
      <dc:date>2014-11-25T12:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: CDI in JUnit</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cdi-in-junit/m-p/196882#M150012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, We bootstrap Weld in our unit test. If I have time I can extract some code for you. It works quite nice. However for injecting @EJB beans, CDI will not be enough, you will need Arquillian for that. We don't use EJB&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or, a simpler solution is to start JUnit from a deployed servlet. But it's not that fancy &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 13:02:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cdi-in-junit/m-p/196882#M150012</guid>
      <dc:creator>pkonyves</dc:creator>
      <dc:date>2014-11-25T13:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: CDI in JUnit</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cdi-in-junit/m-p/196883#M150013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot for the quick answer! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've hoped to got off lightly, but you're right: to do complex (integration) test I have to use little bit more complex approach then a plain JUnit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 07:41:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cdi-in-junit/m-p/196883#M150013</guid>
      <dc:creator>yuryshaban</dc:creator>
      <dc:date>2014-11-26T07:41:11Z</dc:date>
    </item>
  </channel>
</rss>

