use of org.mule.runtime.api.serialization.ObjectSerializer in project mule by mulesoft.
the class SerializationTestUtils method addJavaSerializerToMockMuleContext.
public static ObjectSerializer addJavaSerializerToMockMuleContext(MuleContext mockMuleContext) {
ObjectSerializer objectSerializer = getJavaSerializer(mockMuleContext);
when(mockMuleContext.getObjectSerializer()).thenReturn(objectSerializer);
return objectSerializer;
}
use of org.mule.runtime.api.serialization.ObjectSerializer in project mule by mulesoft.
the class SerializationTestUtils method getJavaSerializerWithMockContext.
public static ObjectSerializer getJavaSerializerWithMockContext() {
MuleContext muleContext = mock(MuleContext.class, RETURNS_DEEP_STUBS);
when(muleContext.getExecutionClassLoader()).thenReturn(ObjectSerializer.class.getClassLoader());
return getJavaSerializer(muleContext);
}
Aggregations