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

sbt.testing.TestWildcardSelector Maven / Gradle / Ivy

The newest version!
package sbt.testing;

import java.io.Serializable;

/**
 * Information that identifies zero to many tests directly contained in a test class.
 *
 * 

* The testWildcard is a simple string, i.e., not a glob or regular expression. * Any test whose name includes the testWildcard string as a substring will be selected. *

*/ public final class TestWildcardSelector extends Selector implements Serializable { private String _testWildcard; /** * Constructs a new TestWildcardSelector with passed testWildcard. * *

* The testWildcard is a simple string, i.e., not a glob or regular expression. * Any test whose name includes the testWildcard string as a substring will be selected. *

* * @param testWildcard a string used to select tests. */ public TestWildcardSelector(String testWildcard) { if (testWildcard == null) { throw new NullPointerException("testWildcard was null"); } _testWildcard = testWildcard; } /** * A test wildcard string used to select tests. * *

* The testWildcard is a simple string, i.e., not a glob or regular expression. * Any test whose name includes the testWildcard string as a substring will be selected. *

* * @return the test wildcard string used to select tests. */ public String testWildcard() { return _testWildcard; } @Override public boolean equals(Object o) { boolean retVal = false; if (o instanceof TestWildcardSelector) { TestWildcardSelector tws = (TestWildcardSelector) o; retVal = tws._testWildcard == _testWildcard; } return retVal; } @Override public int hashCode() { return _testWildcard.hashCode(); } @Override public String toString() { return "TestWildcardSelector(" + _testWildcard + ")"; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy