package testingbot;

import com.testingbot.models.TestingbotTest;

import java.io.Serializable;

public class TestingBotBuildObject implements Serializable {
    private static final long serialVersionUID = 1L;
    private String sessionId;
    private String className;
    private String testName;
    private final boolean isPassed;
    private String authHash;
    private transient TestingbotTest test;
    private String environmentName;

    public TestingBotBuildObject(String sessionId, String className, String testName, boolean isPassed, String authHash, TestingbotTest test) {
      this.sessionId = sessionId;
      this.className = className;
      this.testName = testName;
      this.isPassed = isPassed;
      this.authHash = authHash;
      this.test = test;
      this.environmentName = test.getBrowser() + " | " + test.getOs();
    }

    /**
     * @return the environmentName
     */
    public String getEnvironmentName() {
        return environmentName;
    }

    /**
     * @return the sessionId
     */
    public String getSessionId() {
        return sessionId;
    }

    /**
     * @param sessionId the sessionId to set
     */
    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    /**
     * @return the className
     */
    public String getClassName() {
        return className;
    }

    /**
     * @param className the className to set
     */
    public void setClassName(String className) {
        this.className = className;
    }

    /**
     * @return the testName
     */
    public String getTestName() {
        return testName;
    }

    /**
     * @param testName the testName to set
     */
    public void setTestName(String testName) {
        this.testName = testName;
    }

    
    /**
     * @return the isPassed
     */
    public boolean getIsPassed() {
        return isPassed;
    }

    /**
     * @return the test
     */
    public TestingbotTest getTest() {
        return test;
    }

    /**
     * @param test the test to set
     */
    public void setTest(TestingbotTest test) {
        this.test = test;
    }

    /**
     * @return the authHash
     */
    public String getAuthHash() {
        return authHash;
    }

    /**
     * @param authHash the authHash to set
     */
    public void setAuthHash(String authHash) {
        this.authHash = authHash;
    }
}
package testingbot;

import com.testingbot.models.TestingbotTest;

import java.io.Serializable;

public class TestingBotBuildObject implements Serializable {
    private static final long serialVersionUID = 1L;
    private String sessionId;
    private String className;
    private String testName;
    private final boolean isPassed;
    private String authHash;
    private TestingbotTest test;
    private String environmentName;

    public TestingBotBuildObject(String sessionId, String className, String testName, boolean isPassed, String authHash, TestingbotTest test) {
      this.sessionId = sessionId;
      this.className = className;
      this.testName = testName;
      this.isPassed = isPassed;
      this.authHash = authHash;
      this.test = test;
      this.environmentName = test.getBrowser() + " | " + test.getOs();
    }

    /**
     * @return the environmentName
     */
    public String getEnvironmentName() {
        return environmentName;
    }

    /**
     * @return the sessionId
     */
    public String getSessionId() {
        return sessionId;
    }

    /**
     * @param sessionId the sessionId to set
     */
    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    /**
     * @return the className
     */
    public String getClassName() {
        return className;
    }

    /**
     * @param className the className to set
     */
    public void setClassName(String className) {
        this.className = className;
    }

    /**
     * @return the testName
     */
    public String getTestName() {
        return testName;
    }

    /**
     * @param testName the testName to set
     */
    public void setTestName(String testName) {
        this.testName = testName;
    }

    
    /**
     * @return the isPassed
     */
    public boolean getIsPassed() {
        return isPassed;
    }

    /**
     * @return the test
     */
    public TestingbotTest getTest() {
        return test;
    }

    /**
     * @param test the test to set
     */
    public void setTest(TestingbotTest test) {
        this.test = test;
    }

    /**
     * @return the authHash
     */
    public String getAuthHash() {
        return authHash;
    }

    /**
     * @param authHash the authHash to set
     */
    public void setAuthHash(String authHash) {
        this.authHash = authHash;
    }
}
remove transient test in TestingBotBuildObject