This PR continues #34, which wanted to use batch consumers in tests. A new constructor OpenConnectionWithTestRedisClient was added which returns a real queue connection with an in memory test/mock implementation of a redis client.
That way it can be used in integration like tests which test multiple parts of an rmq connection. (While TestConnection and TestDelivery` are intended for more isolated producer and consumer tests respectively.)
This PR continues #34, which wanted to use batch consumers in tests. A new constructor
OpenConnectionWithTestRedisClient
was added which returns a real queue connection with an in memory test/mock implementation of a redis client.That way it can be used in integration like tests which test multiple parts of an rmq connection. (While
TestConnection
and TestDelivery` are intended for more isolated producer and consumer tests respectively.)/cc @MathieuNls