@Test(expected = IllegalStateException.class) public void testExecuteNullMessage() throws Exception { System.out.println("testExecute null message"); CowExecutor instance = new CowExecutor(); instance.execute(); }
public String execute() { validate(); String[] args = buildArgs(); String result; if (think) { result = Cowsay.think(args); } else { result = Cowsay.say(args); } return result; }
CowExecutor { public String execute() { validate(); String[] args = buildArgs(); String result; if (think) { result = Cowsay.think(args); } else { result = Cowsay.say(args); } return result; } }
CowExecutor { public String execute() { validate(); String[] args = buildArgs(); String result; if (think) { result = Cowsay.think(args); } else { result = Cowsay.say(args); } return result; }  }
CowExecutor { public String execute() { validate(); String[] args = buildArgs(); String result; if (think) { result = Cowsay.think(args); } else { result = Cowsay.say(args); } return result; }  void setEyes(final String eyes); void setCowfile(final String cowfile); void setThink(final boolean think); void setTongue(final String tongue); void setWrap(final String wrap); void setMessage(final String message); void setMode(final String mode); void setLang(final String lang); void setHtml(final boolean html); void setAlt(final String alt); String execute(); }
CowExecutor { public String execute() { validate(); String[] args = buildArgs(); String result; if (think) { result = Cowsay.think(args); } else { result = Cowsay.say(args); } return result; }  void setEyes(final String eyes); void setCowfile(final String cowfile); void setThink(final boolean think); void setTongue(final String tongue); void setWrap(final String wrap); void setMessage(final String message); void setMode(final String mode); void setLang(final String lang); void setHtml(final boolean html); void setAlt(final String alt); String execute();  }