
sbt.testing.NestedSuiteSelector Maven / Gradle / Ivy
The newest version!
package sbt.testing;
import java.io.Serializable;
/**
* Information in addition to a test class name that identifies a nested suite about which an
* event was fired.
*/
public final class NestedSuiteSelector extends Selector implements Serializable {
private String _suiteId;
/**
* Constructs a new NestedSuiteSelector
with given suiteId
.
*
* @param suiteId the id of the nested suite
*/
public NestedSuiteSelector(String suiteId) {
if (suiteId == null) {
throw new NullPointerException("suiteId was null");
}
_suiteId = suiteId;
}
/**
* An id that, in addition to a test class name, identifies a nested suite about which an
* event was fired.
*
* @return the id of the nested suite
*/
public String suiteId() {
return _suiteId;
}
@Override public boolean equals(Object o) {
boolean retVal = false;
if (o instanceof NestedSuiteSelector) {
NestedSuiteSelector nss = (NestedSuiteSelector) o;
retVal = nss._suiteId == _suiteId;
}
return retVal;
}
@Override public int hashCode() {
return _suiteId.hashCode();
}
@Override public String toString() {
return "NestedSuiteSelector(" + _suiteId + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy