Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,674 for factory (0.13 sec)

  1. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/processors/MaxNParallelTestClassProcessor.java

            TestClassProcessor processor;
            if (processors.size() < maxProcessors) {
                processor = factory.create();
                rawProcessors.add(processor);
                Actor actor = actorFactory.createActor(processor);
                processor = actor.getProxy(TestClassProcessor.class);
                actors.add(actor);
                processors.add(processor);
                processor.startProcessing(resultProcessor);
            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        }
      }
    
      public void testDaemon_false() {
        ThreadFactory factory = builder.setDaemon(false).build();
        Thread thread = factory.newThread(monitoredRunnable);
        assertFalse(thread.isDaemon());
      }
    
      public void testDaemon_true() {
        ThreadFactory factory = builder.setDaemon(true).build();
        Thread thread = factory.newThread(monitoredRunnable);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        super.setUp();
        CycleDetectingLockFactory factory = CycleDetectingLockFactory.newInstance(Policies.THROW);
        lockA = factory.newReentrantLock("LockA");
        lockB = factory.newReentrantLock("LockB");
        lockC = factory.newReentrantLock("LockC");
        ReentrantReadWriteLock readWriteLockA = factory.newReentrantReadWriteLock("ReadWriteA");
        ReentrantReadWriteLock readWriteLockB = factory.newReentrantReadWriteLock("ReadWriteB");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        super.setUp();
        CycleDetectingLockFactory factory = CycleDetectingLockFactory.newInstance(Policies.THROW);
        lockA = factory.newReentrantLock("LockA");
        lockB = factory.newReentrantLock("LockB");
        lockC = factory.newReentrantLock("LockC");
        ReentrantReadWriteLock readWriteLockA = factory.newReentrantReadWriteLock("ReadWriteA");
        ReentrantReadWriteLock readWriteLockB = factory.newReentrantReadWriteLock("ReadWriteB");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/FactoriesTest.groovy

    class FactoriesTest extends Specification {
        def "factory runs given runnable and returns null"() {
            Runnable r = Mock()
            Factory<String> factory = Factories.toFactory(r)
    
            when:
            def result = factory.create()
    
            then:
            result == null
    
            and:
            1 * r.run()
            0 * r._
        }
    
        def "factory gets cached"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/idea/model/PathFactoryTest.groovy

            factory.path(subDir) == factory.path("file://${relpath(childFile)}/../..")
            factory.path("file://${relpath(subDir)}") != factory.path("file://${relpath(childFile)}")
    
            // Using absolute paths
            factory.path(subDir) == factory.path("file://${subDir.absolutePath}")
    
            // Using replacement variables
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/state/DefaultManagedFactoryRegistryTest.groovy

        def "returns a factory for a given type"() {
            def fooFactory = factory(Foo)
            def buzzFactory = factory(Buzz)
            registry.withFactories(buzzFactory, fooFactory)
    
            expect:
            registry.lookup(fooFactory.id) == fooFactory
        }
    
        def "returns null for unknown type"() {
            def fooFactory = factory(Foo)
            def barFactory = factory(Bar)
            def buzzFactory = factory(Buzz)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/model/NamedObjectInstantiatorTest.groovy

            n2.toString() == "b"
    
            n1.is(factory.named(CustomNamed, "a"))
            n2.is(factory.named(CustomNamed, "b"))
    
            !n1.is(factory.named(Named, "a"))
            !n2.is(factory.named(Named, "b"))
    
            n1 instanceof Managed
        }
    
        def "can unpack and recreate instance of subtype of Named"() {
            expect:
            def n1 = factory.named(CustomNamed, "a")
            n1 instanceof Managed
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultCacheFactoryTest.groovy

            cleanup:
            factory.close()
        }
    
        void "can visit all caches created by factory"() {
            def visited = [] as Set
    
            when:
            factory.open(tmpDir.testDirectory.file('foo'), "foo", [prop: 'value'], mode(Shared), null, null)
            factory.open(tmpDir.testDirectory.file('bar'), "bar", [prop: 'value'], mode(Shared), null, null)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          throws InvocationTargetException, IllegalAccessException {
        T returnValue = factory.invoke(null, args.toArray());
        if (returnValue == null) {
          Assert.assertTrue(
              factory + " returns null but it's not annotated with @Nullable", isNullable(factory));
        }
        return returnValue;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
Back to top