Is there an easy way to require that your dependencies are met without actually having to call getInstance or have an instance of an object?
This should be easy since I can build a graph of the connections between Classes.
Some of my instances require complex init and external dependencies like Cassandra and ActiveMQ... I don't to have to require these in my unit tests because they are hefty.
I'd like to inject Session which is a Cassandra object bound to a given connection... but of course I would have to create that object manually.
Is there a cleaner way to do this?
This way I could have some basic tests for production bindings to make sure the bindings are complete and all dependencies met.