Skip to content

Instantly share code, notes, and snippets.

@azusa
Last active January 1, 2016 04:19
Show Gist options
  • Save azusa/8091136 to your computer and use it in GitHub Desktop.
Save azusa/8091136 to your computer and use it in GitHub Desktop.
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