Last active
January 1, 2016 04:19
-
-
Save azusa/8091136 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
import java.util.HashMap; | |
import java.util.Map; | |
public class PrivateMethod { | |
// 結果が入っているとしましょう | |
private int result = new HashMap<String, String>(); | |
public void execute(){ | |
this.result = doExecute(); | |
} | |
public int getResult(){ | |
return result; | |
} | |
/** | |
* このメソッドにテストを書く | |
*/ | |
int doExecute(){ | |
int result = ~~ | |
return result; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment