Dependency injection and unit test -


it wonderful when domain class want test depends upon stateless objects, can use dependency inject tricks can test function on class. if objects upon domain class depends stateful? can still employ dependency inject technique in case? mean "stateful object" object state initialized through constructor. can still use di container initialization?


Comments

Popular posts from this blog

Regex find and replace between <div class="customclass"> and </div> tag -

jpa - Passing entitymanager from reflection method -