All Downloads are FREE. Search and download functionalities are using the official Maven repository.

us.abstracta.jmeter.javadsl.blazemeter.api.TestRunStatus Maven / Gradle / Ivy

There is a newer version: 028
Show newest version
package us.abstracta.jmeter.javadsl.blazemeter.api;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;

public class TestRunStatus {

  public static final TestRunStatus CREATED = new TestRunStatus("CREATED", false);
  public static final TestRunStatus ENDED = new TestRunStatus("ENDED", false);

  private final String status;
  private final boolean isDataAvailable;

  @JsonCreator
  private TestRunStatus(@JsonProperty("status") String status,
      @JsonProperty("isDataAvailable") boolean isDataAvailable) {
    this.status = status;
    this.isDataAvailable = isDataAvailable;
  }

  public boolean isDataAvailable() {
    return isDataAvailable;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TestRunStatus that = (TestRunStatus) o;
    return Objects.equals(status, that.status);
  }

  @Override
  public int hashCode() {
    return Objects.hash(status);
  }

  @Override
  public String toString() {
    return status;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy