/*
 * Copyright 2016 EPAM Systems
 * 
 * 
 * This file is part of EPAM Report Portal.
 * https://github.com/reportportal/commons-model
 * 
 * Report Portal is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Report Portal is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Report Portal.  If not, see <http://www.gnu.org/licenses/>.
 */ 
 
package com.epam.ta.reportportal.ws.model;

import javax.validation.Valid;

import com.epam.ta.reportportal.ws.model.issue.Issue;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonInclude(Include.NON_NULL)
public class FinishTestItemRQ extends FinishExecutionRQ {

	@Valid
	@JsonProperty(value = "issue")
	private Issue issue;

	public Issue getIssue() {
		return issue;
	}

	public void setIssue(Issue issue) {
		this.issue = issue;
	}

	@Override
	public String toString() {
		final StringBuilder sb = new StringBuilder("FinishTestItemRQ{");
		sb.append("issue=").append(issue);
		sb.append('}');
		return sb.toString();
	}
}
@@ -1242,16 +1242,187 @@
 issue;%0A%0A
+%09@JsonProperty(value = %22retry%22)%0A%09private boolean retry;%0A%0A%09public boolean getRetry() %7B%0A%09%09return retry;%0A%09%7D%0A%0A%09public void setRetry(boolean retry) %7B%0A%09%09this.retry = retry;%0A%09%7D%0A%0A
 %09public 
@@ -1568,139 +1568,89 @@
 %7B%0A%09%09
-final StringBuilder sb = new StringBuilder(%22FinishTestItemRQ%7B%22);%0A%09%09sb.append(%22issue=%22).append(issue);%0A%09%09sb.append('%7D');%0A%09%09return sb
+return %22FinishTestItemRQ%7B%22 + %22issue=%22 + issue + %22, retry=%22 + retry + %22%7D %22 + super
 .toS

introduce retry flag on the finish