<?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: Unit test cases for Java Controller based Webscripts in Alfresco in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/unit-test-cases-for-java-controller-based-webscripts-in-alfresco/m-p/42042#M17636</link>
    <description>&lt;P&gt;However, in this way you would always need an active container. There are other quicker and easier ways to test a controller. You could simply add the alfresco-tests library into your sdk, write a test and run it without needing an active ACS. Here you will find the details &lt;A href="https://alfresco-tests.vige.it" target="_blank" rel="nofollow noopener noreferrer"&gt;https://alfresco-tests.vige.it&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2024 09:32:29 GMT</pubDate>
    <dc:creator>lucastancapiano</dc:creator>
    <dc:date>2024-03-13T09:32:29Z</dc:date>
    <item>
      <title>Unit test cases for Java Controller based Webscripts in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/unit-test-cases-for-java-controller-based-webscripts-in-alfresco/m-p/42039#M17633</link>
      <description>I plan to unit test the webscripts that had Java as controllers. I have found two approaches.1) Go along the lines of bootstrap code&amp;nbsp;HelloWorldWebScriptControllerTest.java2) Follow&amp;nbsp;https://github.com/Alfresco/alfresco-remote-api. Here, the test classes extend&amp;nbsp;org.alfresco.repo.web.scripts.BaseWebScr</description>
      <pubDate>Mon, 04 Mar 2019 15:17:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/unit-test-cases-for-java-controller-based-webscripts-in-alfresco/m-p/42039#M17633</guid>
      <dc:creator>sarakahn</dc:creator>
      <dc:date>2019-03-04T15:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unit test cases for Java Controller based Webscripts in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/unit-test-cases-for-java-controller-based-webscripts-in-alfresco/m-p/42040#M17634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the second approach you are trying to add EA version,which does not exist in the specified url.&lt;/P&gt;&lt;P&gt;You can use another version.&lt;/P&gt;&lt;P&gt;Check by your self on below URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mvnrepository.com/artifact/org.alfresco/alfresco-remote-api" title="https://mvnrepository.com/artifact/org.alfresco/alfresco-remote-api" rel="nofollow noopener noreferrer"&gt;Maven Repository: org.alfresco » alfresco-remote-api&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2019 06:21:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/unit-test-cases-for-java-controller-based-webscripts-in-alfresco/m-p/42040#M17634</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2019-03-05T06:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unit test cases for Java Controller based Webscripts in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/unit-test-cases-for-java-controller-based-webscripts-in-alfresco/m-p/42041#M17635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have taken the latest one as well. But, the&amp;nbsp;&lt;SPAN style="color: #242729; background-color: #eff0f1;"&gt;BaseWebScriptTest is missing. I was wondering if my approach to alfresco-remote-api is correct.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; background-color: #eff0f1;"&gt;Also, if I follow the first method, I need to mock lot of services as well. How should I mock&amp;nbsp;ServiceRegistry or&amp;nbsp;NodeService?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2019 06:53:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/unit-test-cases-for-java-controller-based-webscripts-in-alfresco/m-p/42041#M17635</guid>
      <dc:creator>sarakahn</dc:creator>
      <dc:date>2019-03-05T06:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unit test cases for Java Controller based Webscripts in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/unit-test-cases-for-java-controller-based-webscripts-in-alfresco/m-p/42042#M17636</link>
      <description>&lt;P&gt;However, in this way you would always need an active container. There are other quicker and easier ways to test a controller. You could simply add the alfresco-tests library into your sdk, write a test and run it without needing an active ACS. Here you will find the details &lt;A href="https://alfresco-tests.vige.it" target="_blank" rel="nofollow noopener noreferrer"&gt;https://alfresco-tests.vige.it&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 09:32:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/unit-test-cases-for-java-controller-based-webscripts-in-alfresco/m-p/42042#M17636</guid>
      <dc:creator>lucastancapiano</dc:creator>
      <dc:date>2024-03-13T09:32:29Z</dc:date>
    </item>
  </channel>
</rss>

