org.conqat.engine.sourcecode.coverage.ClusteredTestDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of teamscale-commons Show documentation
Show all versions of teamscale-commons Show documentation
Provides common DTOs for Teamscale
package org.conqat.engine.sourcecode.coverage;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* {@link TestDetails} with additional information about which cluster of tests
* the test case belongs to during prioritization.
*/
public class ClusteredTestDetails extends TestDetails {
private static final long serialVersionUID = 1L;
/** The name of the JSON property name for {@link #clusterId}. */
private static final String CLUSTER_ID_PROPERTY = "clusterId";
/**
* A unique identifier for the cluster this test should be prioritized within.
* May not be null.
*/
@JsonProperty(CLUSTER_ID_PROPERTY)
public final String clusterId;
@JsonCreator
public ClusteredTestDetails(@JsonProperty(UNIFORM_PATH_PROPERTY) String uniformPath,
@JsonProperty(SOURCE_PATH_PROPERTY) String sourcePath, @JsonProperty(CONTENT_PROPERTY) String content,
@JsonProperty(LAST_CHANGED_TIMESTAMP_PROPERTY) long lastChangedTimestamp,
@JsonProperty(CLUSTER_ID_PROPERTY) String clusterId) {
super(uniformPath, sourcePath, content, lastChangedTimestamp);
this.clusterId = clusterId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy