<?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 How to mock Easy Node Access class for BOPF unit testing? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-mock-easy-node-access-class-for-bopf-unit-testing/m-p/612139#M25281</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I develop some custom BOPF-based features for EHS and use ENA framework because of it's clean and useful object structure. But because of lack of documentation I can't solve easy problems like BO's actions and validations unit testing.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I get the instance of ENA class using static factory method cl_ehfnd_ena_service_mngr=&amp;gt;instancev2( ). But I found no possibility to mock it for unit test out-of-the-box.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Are there some good practices to test ENA or another powerfull approaches? Maybe some kind of insider information related to ENA?&lt;/P&gt;</description>
    <pubDate>Fri, 30 Mar 2018 08:16:38 GMT</pubDate>
    <dc:creator>former_member234832</dc:creator>
    <dc:date>2018-03-30T08:16:38Z</dc:date>
    <item>
      <title>How to mock Easy Node Access class for BOPF unit testing?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-mock-easy-node-access-class-for-bopf-unit-testing/m-p/612139#M25281</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I develop some custom BOPF-based features for EHS and use ENA framework because of it's clean and useful object structure. But because of lack of documentation I can't solve easy problems like BO's actions and validations unit testing.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I get the instance of ENA class using static factory method cl_ehfnd_ena_service_mngr=&amp;gt;instancev2( ). But I found no possibility to mock it for unit test out-of-the-box.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Are there some good practices to test ENA or another powerfull approaches? Maybe some kind of insider information related to ENA?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 08:16:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-mock-easy-node-access-class-for-bopf-unit-testing/m-p/612139#M25281</guid>
      <dc:creator>former_member234832</dc:creator>
      <dc:date>2018-03-30T08:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to mock Easy Node Access class for BOPF unit testing?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-mock-easy-node-access-class-for-bopf-unit-testing/m-p/612140#M25282</link>
      <description>&lt;P&gt;Hi Ilya,&lt;/P&gt;
  &lt;P&gt;Maybe this recent post on BOPF testing has some information for you: &lt;A href="https://blogs.sap.com/2018/02/21/how-to-test-bopf-actions-determinations-and-validations-using-bunit-an-introduction-to-the-bopf-unit-test-framework/"&gt;How to Test BOPF Actions, Determinations and Validations Using BUnit – An Introduction to the BOPF Unit Test Framework&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 09:44:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-mock-easy-node-access-class-for-bopf-unit-testing/m-p/612140#M25282</guid>
      <dc:creator>egor_malov</dc:creator>
      <dc:date>2018-04-04T09:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to mock Easy Node Access class for BOPF unit testing?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-mock-easy-node-access-class-for-bopf-unit-testing/m-p/612141#M25283</link>
      <description>&lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Hi Egor,&lt;/P&gt;
  &lt;P&gt;Thanks, it's very helpful. But unfortunately, framework provides a very small possibility to test BOPF stuff, for example I cannot test any cross-BO requests etc. But I wrote one unit test for default date determination with it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Ilya&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 14:08:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-mock-easy-node-access-class-for-bopf-unit-testing/m-p/612141#M25283</guid>
      <dc:creator>former_member234832</dc:creator>
      <dc:date>2018-04-25T14:08:03Z</dc:date>
    </item>
  </channel>
</rss>

