<?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>Test a WebService with parameters come from a LocalService</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120654102" />
  <subtitle>Test a WebService with parameters come from a LocalService</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120654102</id>
  <updated>2026-04-04T02:29:55Z</updated>
  <dc:date>2026-04-04T02:29:55Z</dc:date>
  <entry>
    <title>Test a WebService with parameters come from a LocalService</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120654101" />
    <author>
      <name>Elvis Silva</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120654101</id>
    <updated>2021-03-01T09:15:12Z</updated>
    <published>2021-03-01T03:15:00Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have to create a test unit to a webservice which most parameters
  come from a database table (LocalService) and Configuration
  dictionary. Is possible to do this?. &lt;/p&gt;
&lt;p&gt;I tried it using testIntegration with Arquillian (&lt;a
    href="https://liferay.dev/blogs/-/blogs/how-to-develop-integration-test-for-liferay-7-2-service-builder-modules"&gt;from
    this post&lt;/a&gt;) but the data I got are real and fake generated values
  mixed both of them. May this be configured somewhere?&lt;/p&gt;
&lt;p&gt;The way I am doing this test unit using parameters from LocalService
  is natural or do I have to use constants values?. I try to avoid
  having the same data in two places.&lt;/p&gt;
&lt;p&gt;Thanks you all,&lt;/p&gt;</summary>
    <dc:creator>Elvis Silva</dc:creator>
    <dc:date>2021-03-01T03:15:00Z</dc:date>
  </entry>
</feed>
