/**
 * Automated Exploratory Tests
 *
 * Copyright (C) 2013 Cognifide Limited
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.cognifide.aet.communication.api.suiteexecution;

public class SuiteExecutionResult {

  private String correlationId;

  private String statusUrl;

  private String htmlReportUrl;

  private String xunitReportUrl;

  private String errorMessage;

  private SuiteExecutionResult() {
    //Use create methods to get instance
  }

  public static SuiteExecutionResult createSuccessResult(String correlationId, String statusUrl,
      String htmlReportUrl, String xunitReportUrl) {
    SuiteExecutionResult suiteExecutionResult = new SuiteExecutionResult();
    suiteExecutionResult.setCorrelationId(correlationId);
    suiteExecutionResult.setStatusUrl(statusUrl);
    suiteExecutionResult.setHtmlReportUrl(htmlReportUrl);
    suiteExecutionResult.setXunitReportUrl(xunitReportUrl);
    return suiteExecutionResult;
  }

  public static SuiteExecutionResult createErrorResult(String errorMessage) {
    SuiteExecutionResult suiteExecutionResult = new SuiteExecutionResult();
    suiteExecutionResult.setErrorMessage(errorMessage);
    return suiteExecutionResult;
  }

  public String getCorrelationId() {
    return correlationId;
  }

  public String getStatusUrl() {
    return statusUrl;
  }

  public String getHtmlReportUrl() {
    return htmlReportUrl;
  }

  public String getXunitReportUrl() {
    return xunitReportUrl;
  }

  public String getErrorMessage() {
    return errorMessage;
  }

  private void setCorrelationId(String correlationId) {
    this.correlationId = correlationId;
  }

  private void setStatusUrl(String statusUrl) {
    this.statusUrl = statusUrl;
  }

  private void setHtmlReportUrl(String htmlReportUrl) {
    this.htmlReportUrl = htmlReportUrl;
  }

  private void setXunitReportUrl(String xunitReportUrl) {
    this.xunitReportUrl = xunitReportUrl;
  }

  private void setErrorMessage(String errorMessage) {
    this.errorMessage = errorMessage;
  }
}

@@ -1220,20 +1220,17 @@
 nResult.
-setC
+c
 orrelati
@@ -1233,17 +1233,19 @@
 lationId
-(
+ = 
 correlat
@@ -1249,17 +1249,16 @@
 lationId
-)
 ;%0A    su
@@ -1277,27 +1277,24 @@
 Result.s
-etS
 tatusUrl
 (statusU
@@ -1285,17 +1285,19 @@
 tatusUrl
-(
+ = 
 statusUr
@@ -1297,17 +1297,16 @@
 tatusUrl
-)
 ;%0A    su
@@ -1324,20 +1324,17 @@
 nResult.
-setH
+h
 tmlRepor
@@ -1337,17 +1337,19 @@
 eportUrl
-(
+ = 
 htmlRepo
@@ -1349,25 +1349,24 @@
 tmlReportUrl
-)
 ;%0A    suiteE
@@ -1380,20 +1380,17 @@
 nResult.
-setX
+x
 unitRepo
@@ -1394,17 +1394,19 @@
 eportUrl
-(
+ = 
 xunitRep
@@ -1411,17 +1411,16 @@
 eportUrl
-)
 ;%0A    re
@@ -1630,20 +1630,17 @@
 nResult.
-setE
+e
 rrorMess
@@ -1642,17 +1642,19 @@
 rMessage
-(
+ = 
 errorMes
@@ -1657,17 +1657,16 @@
 rMessage
-)
 ;%0A    re
@@ -2033,494 +2033,6 @@
  %7D%0A%0A
-  private void setCorrelationId(String correlationId) %7B%0A    this.correlationId = correlationId;%0A  %7D%0A%0A  private void setStatusUrl(String statusUrl) %7B%0A    this.statusUrl = statusUrl;%0A  %7D%0A%0A  private void setHtmlReportUrl(String htmlReportUrl) %7B%0A    this.htmlReportUrl = htmlReportUrl;%0A  %7D%0A%0A  private void setXunitReportUrl(String xunitReportUrl) %7B%0A    this.xunitReportUrl = xunitReportUrl;%0A  %7D%0A%0A  private void setErrorMessage(String errorMessage) %7B%0A    this.errorMessage = errorMessage;%0A  %7D%0A
 %7D%0A

Remove setters from SuiteExecutionResult (#50)