Skip to main content

All Questions

Filter by
Sorted by
Tagged with
6 votes
1 answer
25k views

Dependency Injection into an Abstract Class

Me and another developer have recently forked and taken over an abandoned, open-source project. I have also been reading articles and watching videos by Misko Hevery. When I was reading through the ...
Nikolaii99's user avatar
3 votes
1 answer
192 views

Guice custom behavior for testing

I have a Java/Swing/Guice application that uses multiple frames. When the application runs normally, I just want some of these frames to hide (and the "master" frame can unhide them). When testing ...
durron597's user avatar
  • 928
1 vote
2 answers
1k views

Unit Test to verify number of times lazy initialization logic is executed for a data member

I'll write a small simulation of my actual class first to request insights on unit testing one of the behaviors of this class. Here is my class A: ...
Ameliorator's user avatar