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

jpa - Passing entitymanager from reflection method -

frame rate - JAVA simple fps animation(how can i work with?) -