Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 941 for factory (0.43 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. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/DefaultTargetMachineFactoryTest.groovy

            expect:
            factory.windows == factory.windows
            factory.linux == factory.linux
            factory.macOS == factory.macOS
            factory.windows.x86 == factory.windows.x86
            factory.linux.x86_64 == factory.linux.x86_64
            factory.windows.architecture("arm") == factory.windows.architecture("arm")
            factory.os("fushia").architecture("arm") == factory.os("fushia").architecture("arm")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/attributes/DefaultImmutableAttributesFactoryTest.groovy

            expect:
            def attributes = factory.of(FOO, "foo")
            factory.of(FOO, "foo").is(attributes)
            factory.of(FOO, "other") != attributes
            factory.of(BAR, "foo") != attributes
        }
    
        def "can concatenate immutable attributes sets"() {
            when:
            def set1 = factory.of(FOO, "foo")
            def set2 = factory.of(BAR, "bar")
            def union = factory.concat(set1, set2)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 07 17:59:06 UTC 2022
    - 8.9K bytes
    - Viewed (0)
  10. subprojects/core-api/src/main/java/org/gradle/api/ExtensiblePolymorphicDomainObjectContainer.java

         * @param type the type of objects created by the factory
         * @param factory the factory to register
         * @param <U> the type of objects created by the factory
         *
         * @throws IllegalArgumentException if the specified type is not a subtype of the container element type
         */
        @Override
        <U extends T> void registerFactory(Class<U> type, NamedDomainObjectFactory<? extends U> factory);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 03 14:28:15 UTC 2020
    - 3.2K bytes
    - Viewed (0)
Back to top