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

org.conqat.engine.sourcecode.coverage.ClusteredTestDetails Maven / Gradle / Ivy

There is a newer version: 2025.1.0
Show newest version
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