Created
May 26, 2019 11:14
-
-
Save donchan922/04646060d7620312170a2793aef1006f to your computer and use it in GitHub Desktop.
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 DemoService { | |
public User findById(String id) { | |
// ローカル変数はモック化できない!!! | |
DemoRepository demoRepository = new DemoRepository(); | |
return demoRepository.findById(id); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment