()
| 8 | |
| 9 | |
| 10 | @Override |
| 11 | public String execute() throws Exception { |
| 12 | if ((this.username.isEmpty()) || (this.password.isEmpty())) { |
| 13 | return "error"; |
| 14 | } |
| 15 | if ((this.username.equalsIgnoreCase("admin")) |
| 16 | && (this.password.equals("admin")) |
| 17 | ) { |
| 18 | return "success"; |
| 19 | } |
| 20 | return "error"; |
| 21 | |
| 22 | } |
| 23 | public void setPassword(String password) { |
| 24 | this.password = "%{1+1}"; |
| 25 | } |
nothing calls this directly
no outgoing calls
no test coverage detected