Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for MultithreadedTestRule (0.24 sec)

  1. subprojects/core/src/testFixtures/groovy/org/gradle/util/internal/MultithreadedTestRule.java

     *
     * <p>You can use {@link #syncAt(int)} and {@link #expectBlocksUntil(int, groovy.lang.Closure)} to synchronise between
     * test threads.</p>
     */
    public class MultithreadedTestRule extends ExternalResource {
        private static final Logger LOGGER = LoggerFactory.getLogger(MultithreadedTestRule.class);
        private static final int MAX_WAIT_TIME = 5000;
        private ExecutorImpl executor;
        private final Lock lock = new ReentrantLock();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 23.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/id/LongIdGeneratorTest.groovy

    class LongIdGeneratorTest {
        private final LongIdGenerator generator = new LongIdGenerator()
    
        @Rule
        public MultithreadedTestRule parallel = new MultithreadedTestRule();
    
        @Test
        void generatesMonotonicallyIncreasingLongIdsStartingAtOne() {
            assertThat(generator.generateId(), equalTo(1L))
            assertThat(generator.generateId(), equalTo(2L))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/dispatch/AsyncDispatchTest.groovy

    package org.gradle.internal.dispatch
    
    import org.gradle.util.internal.MultithreadedTestRule
    import org.junit.Rule
    import spock.lang.Specification
    
    import static org.hamcrest.CoreMatchers.sameInstance
    
    public class AsyncDispatchTest extends Specification {
        private final Dispatch<String> target1 = Mock()
    
        @Rule
        public MultithreadedTestRule parallel = new MultithreadedTestRule()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_7.adoc

    - `Resources`
    - `RedirectStdOutAndErr`
    - `Swapper`
    - `StdInSwapper`
    - `IncubationLogger`
    - `RedirectStdIn`
    - `MultithreadedTestRule`
    - `DisconnectableInputStream`
    - `BulkReadInputStream`
    - `MockExecutor`
    - `FailsWithMessage`
    - `FailsWithMessageExtension`
    - `TreeVisitor`
    - `AntUtil`
    - `JarUtil`
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 15:00:23 UTC 2024
    - 87.7K bytes
    - Viewed (0)
Back to top