Last active
April 24, 2017 18:42
-
-
Save bisignam/efafeb16d324cab985e65c4fb0677ad3 to your computer and use it in GitHub Desktop.
An example of untestable service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Service | |
public class UntestableService { | |
private AnotherService myDependency; | |
UntestableService(){ | |
this.myDependency = SpringFactory.createMyDependency(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment