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

com.undefinedlabs.scope.settings.remote.ScopeBackendTest Maven / Gradle / Ivy

package com.undefinedlabs.scope.settings.remote;

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

public class ScopeBackendTest {

  private final String testSuite;
  private final String testName;

  @JsonCreator
  public ScopeBackendTest(
      @JsonProperty("test_suite") final String testSuite,
      @JsonProperty("test_name") final String testName) {
    this.testSuite = testSuite;
    this.testName = testName;
  }

  @JsonGetter
  public String getTestSuite() {
    return testSuite;
  }

  @JsonGetter
  public String getTestName() {
    return testName;
  }

  @Override
  public boolean equals(final Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    final ScopeBackendTest that = (ScopeBackendTest) o;
    return Objects.equals(testSuite, that.testSuite) && Objects.equals(testName, that.testName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(testSuite, testName);
  }

  @Override
  public String toString() {
    final StringBuilder sb = new StringBuilder("ScopeBackendTest{");
    sb.append("testSuite='").append(testSuite).append('\'');
    sb.append(", testName='").append(testName).append('\'');
    sb.append('}');
    return sb.toString();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy