Search in sources :

Example 1 with CustomJavaSerializationProtocol

use of org.mule.runtime.module.artifact.api.serializer.protocol.CustomJavaSerializationProtocol in project mule by mulesoft.

the class CustomJavaSerializationProtocolTestCase method doSetUp.

@Override
protected void doSetUp() throws Exception {
    classLoaderRepository = mock(ClassLoaderRepository.class);
    when(classLoaderRepository.getId(getClass().getClassLoader())).thenReturn(empty());
    when(classLoaderRepository.getId(null)).thenReturn(empty());
    serializationProtocol = new CustomJavaSerializationProtocol(classLoaderRepository);
    initialiseIfNeeded(serializationProtocol, true, muleContext);
}
Also used : ClassLoaderRepository(org.mule.runtime.module.artifact.api.classloader.ClassLoaderRepository) CustomJavaSerializationProtocol(org.mule.runtime.module.artifact.api.serializer.protocol.CustomJavaSerializationProtocol)

Aggregations

ClassLoaderRepository (org.mule.runtime.module.artifact.api.classloader.ClassLoaderRepository)1 CustomJavaSerializationProtocol (org.mule.runtime.module.artifact.api.serializer.protocol.CustomJavaSerializationProtocol)1