<?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 Using JUnit5 for integration tests in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/using-junit5-for-integration-tests/m-p/121163#M33259</link>
    <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I'm currently working on integration tests in ACS Enterprise 7.4.1 that were made by some of my colleagues a couple of years ago, and now I have to switch from JUnit4 to JUnit5.&lt;/P&gt;&lt;P&gt;The integration tests need to be running inside an existing ACS instance.&lt;/P&gt;&lt;P&gt;What worries me is this bit of info I found in alfresco-sdk docs on Github :&lt;BR /&gt;"In summary, if you want to execute your integration tests inside an existing ACS instance, you'll need to annotate them with the JUnit &lt;STRONG&gt;RunWith&lt;/STRONG&gt; annotation and set the value to &lt;STRONG&gt;AlfrescoTestRunner.class&lt;/STRONG&gt;."&lt;/P&gt;&lt;P&gt;But &lt;STRONG&gt;RunWith&lt;/STRONG&gt; annotation doesn't exist in JUnit5 and if we inspect AlfrescoTestRunner we can see that it extends &lt;STRONG&gt;BlockJUnit4ClassRunner&lt;/STRONG&gt;. All of this makes me think that JUnit5 cannot be used with integration tests on ACS Enterprise 7.4.1 .&lt;/P&gt;&lt;P&gt;I'm a beginner when it comes to working with Alfresco products, and any help you can give me to solve my problem would be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks ! &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;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2024 13:41:05 GMT</pubDate>
    <dc:creator>LucasLangowski</dc:creator>
    <dc:date>2024-07-29T13:41:05Z</dc:date>
    <item>
      <title>Using JUnit5 for integration tests</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-junit5-for-integration-tests/m-p/121163#M33259</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I'm currently working on integration tests in ACS Enterprise 7.4.1 that were made by some of my colleagues a couple of years ago, and now I have to switch from JUnit4 to JUnit5.&lt;/P&gt;&lt;P&gt;The integration tests need to be running inside an existing ACS instance.&lt;/P&gt;&lt;P&gt;What worries me is this bit of info I found in alfresco-sdk docs on Github :&lt;BR /&gt;"In summary, if you want to execute your integration tests inside an existing ACS instance, you'll need to annotate them with the JUnit &lt;STRONG&gt;RunWith&lt;/STRONG&gt; annotation and set the value to &lt;STRONG&gt;AlfrescoTestRunner.class&lt;/STRONG&gt;."&lt;/P&gt;&lt;P&gt;But &lt;STRONG&gt;RunWith&lt;/STRONG&gt; annotation doesn't exist in JUnit5 and if we inspect AlfrescoTestRunner we can see that it extends &lt;STRONG&gt;BlockJUnit4ClassRunner&lt;/STRONG&gt;. All of this makes me think that JUnit5 cannot be used with integration tests on ACS Enterprise 7.4.1 .&lt;/P&gt;&lt;P&gt;I'm a beginner when it comes to working with Alfresco products, and any help you can give me to solve my problem would be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks ! &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;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 13:41:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-junit5-for-integration-tests/m-p/121163#M33259</guid>
      <dc:creator>LucasLangowski</dc:creator>
      <dc:date>2024-07-29T13:41:05Z</dc:date>
    </item>
  </channel>
</rss>

