AnsweredAssumed Answered

Can we test SerializableType customization?

Question asked by rjacobs5 on Jan 18, 2017
Latest reply on Jan 19, 2017 by rjacobs5

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 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 VariableInstanceEntity as SerializableType relies on a DB session.

Is there any way to test the SerializableType or mock the db session.