transport Factory
Obtains the transport factory for the current environment.
In the testing environment, if the factory was not assigned, assigns a new InMemoryTransportFactory
and returns it.
For all other environment types, throws an IllegalStateException
.
If the factory is not assigned in the Tests mode, assigns the instance of InMemoryTransportFactory and returns it.