<?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: Can we test SerializableType customization? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/can-we-test-serializabletype-customization/m-p/3267#M1147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps I am missing something, but can you not create a Unit test that extends PluggableActivitiTestCase?&lt;/P&gt;&lt;P&gt;This will configure up a process engine with an in memory database.&lt;/P&gt;&lt;P&gt;You can then test your serialization/deserialization by simply using setVariable() and getVariable().&lt;/P&gt;&lt;P&gt;Check out the org.activiti.examples.variables.VariablesTest.java for an example of this approach.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2017 17:58:19 GMT</pubDate>
    <dc:creator>gdharley</dc:creator>
    <dc:date>2017-01-18T17:58:19Z</dc:date>
    <item>
      <title>Can we test SerializableType customization?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/can-we-test-serializabletype-customization/m-p/3266#M1146</link>
      <description>Hi all,I have created a custom VariableType called Object type which extends SerializableType. This type marshals a java bean to xml and then uses a wrapper to&amp;nbsp;serialize the XML and store it in the activiti tables.This all works fine. I have written a unit test for this but I cannot create a Variabl</description>
      <pubDate>Wed, 18 Jan 2017 12:13:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/can-we-test-serializabletype-customization/m-p/3266#M1146</guid>
      <dc:creator>rjacobs5</dc:creator>
      <dc:date>2017-01-18T12:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can we test SerializableType customization?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/can-we-test-serializabletype-customization/m-p/3267#M1147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps I am missing something, but can you not create a Unit test that extends PluggableActivitiTestCase?&lt;/P&gt;&lt;P&gt;This will configure up a process engine with an in memory database.&lt;/P&gt;&lt;P&gt;You can then test your serialization/deserialization by simply using setVariable() and getVariable().&lt;/P&gt;&lt;P&gt;Check out the org.activiti.examples.variables.VariablesTest.java for an example of this approach.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 17:58:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/can-we-test-serializabletype-customization/m-p/3267#M1147</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-01-18T17:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can we test SerializableType customization?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/can-we-test-serializabletype-customization/m-p/3268#M1148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems like a huge overhead to&amp;nbsp;setup an in memory DB just to test that the object serializes and de-serializes as expected - I have overwritten the serialize and deserialize methods for my custom object type and I am testing that this works rather than testing the getValue and setValue methods&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 13:33:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/can-we-test-serializabletype-customization/m-p/3268#M1148</guid>
      <dc:creator>rjacobs5</dc:creator>
      <dc:date>2017-01-19T13:33:55Z</dc:date>
    </item>
  </channel>
</rss>

