- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for NamedInstant (0.14 sec)
-
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/NamedInstant.groovy
* limitations under the License. */ package org.gradle.test.fixtures.concurrent /** * A point in time with an associated name. */ class NamedInstant extends Instant { private final String name private final int sequenceNumber NamedInstant(String name, long time, int sequenceNumber) { super(time) this.name = name this.sequenceNumber = sequenceNumber } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.1K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/Instants.groovy
/** * A dynamic collection of {@link NamedInstant} objects. When a property of this object is accessed from a test thread, a new instant is defined. When * accessed from the main thread, queries an existing instant, asserting that it exists. */ class Instants implements InstantFactory, OperationListener { private final Object lock = new Object() private final Map<String, NamedInstant> timePoints = [:] private Thread mainThread
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 3.7K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/InstantFactory.groovy
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.test.fixtures.concurrent interface InstantFactory { NamedInstant now(String name)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 725 bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/ConcurrentSpec.groovy
*/ @Timeout(60) class ConcurrentSpec extends Specification { final TestLogger logger = new TestLogger() /** * An object that allows instants to be defined and queried. * * @see NamedInstant */ final Instants instant = new Instants(logger) /** * An object that allows operations to be defined and queried. * * @see NamedOperation */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 3.5K bytes - Viewed (0)