<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Unit test cases in Liferay 7.4 Update 50</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121673231" />
  <subtitle>Unit test cases in Liferay 7.4 Update 50</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121673231</id>
  <updated>2026-04-05T09:29:41Z</updated>
  <dc:date>2026-04-05T09:29:41Z</dc:date>
  <entry>
    <title>RE: Unit test cases in Liferay 7.4 Update 50</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121678153" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121678153</id>
    <updated>2023-03-23T12:28:29Z</updated>
    <published>2023-03-23T12:28:28Z</published>
    <summary type="html">&lt;p&gt;Personally, I tend to see REST APIs as wiring, not as the place to
  develop (testable) business-relevant code in. And the wiring is (on
  the unit-test level) enough to be reviewed - automated tests -
  including the actual REST layer - happen on a broader level, the
  integration tests.&lt;/p&gt;
&lt;p&gt;Anything that's more than wiring should be extracted out and tested
  separately (and then it's IMHO rather obvious how to test).&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2023-03-23T12:28:28Z</dc:date>
  </entry>
  <entry>
    <title>Unit test cases in Liferay 7.4 Update 50</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121673230" />
    <author>
      <name>Bhargav R Vaghasiya</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121673230</id>
    <updated>2023-03-21T17:13:01Z</updated>
    <published>2023-03-21T05:46:56Z</published>
    <summary type="html">&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We need to write test cases into Liferay 7.4 Update 50, &lt;/p&gt;
&lt;p&gt;The module type is REST-BUILDER&lt;/p&gt;
&lt;p&gt;Liferay generated testIntegration classes with it&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Question: What is the correct way to write a unit test case in
    Rest Builder from below? &lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;test (Mock the methods)&lt;/li&gt;
  &lt;li&gt;testIntegration (Call the REST APIs from rest-client)&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;We have only GET-type APIs and we are using Web content to store the content.&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Questions: How can we write the test cases for GET APIs when
    we don't have any API to create content (Test content)?&lt;/strong&gt;&lt;/p&gt;</summary>
    <dc:creator>Bhargav R Vaghasiya</dc:creator>
    <dc:date>2023-03-21T05:46:56Z</dc:date>
  </entry>
</feed>
